Search found 98 matches
Aprelium Forum Index
Author Message
  Topic: Calling "net start" from PHP
RTAdams89

Replies: 15
Views: 16676

PostForum: PHP   Posted: Thu Nov 15, 2007 2:33 am   Subject: Calling "net start" from PHP
Abyss should be running as the user I am logged in on as that is the user I installed it from. The only other user on the system is the default "administrator" account, and even running from ...
  Topic: Calling "net start" from PHP
RTAdams89

Replies: 15
Views: 16676

PostForum: PHP   Posted: Wed Nov 14, 2007 5:02 pm   Subject: Calling "net start" from PHP
If I use "system()" or "passthru()" it returns "2". That's right, the number two. If I try to use that other function @ http://www.php.net/manual/en/function.exec.php#575 ...
  Topic: Calling "net start" from PHP
RTAdams89

Replies: 15
Views: 16676

PostForum: PHP   Posted: Fri Oct 26, 2007 5:48 pm   Subject: Calling "net start" from PHP
The command line output does work. If I run "CMD" and type
net start > c:\test.txt
I get a file filled with a list of running Services.

However, if in a PHP file I type ...
  Topic: Calling "net start" from PHP
RTAdams89

Replies: 15
Views: 16676

PostForum: PHP   Posted: Thu Oct 25, 2007 3:41 am   Subject: Calling "net start" from PHP
Safe mode is off. If I run the following PHP code:
<?php
exec('net start > c:\test.txt');
?>


I get an empty "test.txt" on my C drive. If i run that command (ne ...
  Topic: Calling "net start" from PHP
RTAdams89

Replies: 15
Views: 16676

PostForum: PHP   Posted: Thu Oct 25, 2007 12:09 am   Subject: Calling "net start" from PHP
It works on the command line, but i get that weird array output when trying it in php.
  Topic: Calling "net start" from PHP
RTAdams89

Replies: 15
Views: 16676

PostForum: PHP   Posted: Wed Oct 24, 2007 6:21 pm   Subject: Calling "net start" from PHP
Using that code I get the output:
Array
(
)

  Topic: Calling "net start" from PHP
RTAdams89

Replies: 15
Views: 16676

PostForum: PHP   Posted: Mon Oct 22, 2007 5:43 pm   Subject: Calling "net start" from PHP
How would I fix this? Other commands such as "ipconfig" or "netstat" work.
  Topic: Calling "net start" from PHP
RTAdams89

Replies: 15
Views: 16676

PostForum: PHP   Posted: Wed Oct 10, 2007 5:52 pm   Subject: Calling "net start" from PHP
I have a PHP web page which shows various system info of the server it is served from. I have several windows command line outputs stored as variables with the PHP commands:

$ipconfig = `ipconfig - ...
  Topic: AVG list vnc as virus...auto delete the file
RTAdams89

Replies: 5
Views: 1676

PostForum: Off Topic Discussions   Posted: Sat May 12, 2007 11:36 pm   Subject: AVG list vnc as virus...auto delete the file
THis happened to me the other day too. It seems it was jsut a messed up definitions file. Try updating AVG, and then reinstall the latest version of VNC. That shoudl fix it.
  Topic: Random domains point to my IP :P
RTAdams89

Replies: 14
Views: 2771

PostForum: Off Topic Discussions   Posted: Thu Apr 19, 2007 3:48 am   Subject: Random domains point to my IP :P
I meant, how did you find this website? Were you just typing in random domain names or what?
  Topic: Random domains point to my IP :P
RTAdams89

Replies: 14
Views: 2771

PostForum: Off Topic Discussions   Posted: Sun Apr 15, 2007 10:09 pm   Subject: Random domains point to my IP :P
How did you "notice" these domains point to your ip?
  Topic: Virtual Directory link to other drive
RTAdams89

Replies: 1
Views: 3353

PostForum: General Questions   Posted: Fri Mar 16, 2007 3:16 am   Subject: Virtual Directory link to other drive
I have Abyss's Document's Path set to "E:\" I happen to have a folder on my "F:\" drive I would like to share. Can i create an alias to point to this folder, or do aliases only wor ...
  Topic: Modify PHP Slideshow script to include sub folders
RTAdams89

Replies: 1
Views: 6781

PostForum: PHP   Posted: Sat Mar 10, 2007 5:06 pm   Subject: Modify PHP Slideshow script to include sub folders
Here is the part of a slide show script i use to retrieve and display images:

<?php
function returnimages($dirname, $start) {
$pattern="(\.jpg$)|(\.jpeg$ ...
  Topic: Dynamically adding hyperlinks
RTAdams89

Replies: 7
Views: 7425

PostForum: General Questions   Posted: Sat Mar 03, 2007 11:36 pm   Subject: Dynamically adding hyperlinks
That works perfectly. Is there anyway to make it grab the contents of the file it is embedded in though? I would rather this not have to have two separate files.
  Topic: Dynamically adding hyperlinks
RTAdams89

Replies: 7
Views: 7425

PostForum: General Questions   Posted: Fri Mar 02, 2007 9:23 pm   Subject: Dynamically adding hyperlinks
I was hoping for something non-dependent on SQL. Ideally it would be just a script I could insert into the head of a document and not require any other resources.

I want to be able to define a list ...
  Topic: Dynamically adding hyperlinks
RTAdams89

Replies: 7
Views: 7425

PostForum: General Questions   Posted: Fri Mar 02, 2007 4:16 am   Subject: Dynamically adding hyperlinks
I am looking for a script (javascript or PHP) that I can insert into one of my web pages that will search the text on the page and add hyperlinks to key words. Anyone know of a script like this?
  Topic: Help with fgetcsv
RTAdams89

Replies: 4
Views: 6618

PostForum: PHP   Posted: Mon Feb 19, 2007 3:39 am   Subject: Help with fgetcsv
Is there a way I can use PHP to search the CSV file for a particular value (a player's name) and return which line that that value appears in?
  Topic: Help with fgetcsv
RTAdams89

Replies: 4
Views: 6618

PostForum: PHP   Posted: Wed Feb 14, 2007 12:34 am   Subject: Help with fgetcsv
That is semi-working now. Is there a way I can use PHP to search the CSV file for a particular value (a player's name) and return which line that that value appears in?
  Topic: Help with fgetcsv
RTAdams89

Replies: 4
Views: 6618

PostForum: PHP   Posted: Tue Feb 13, 2007 10:08 pm   Subject: Help with fgetcsv
I have a CSV file as follows:

"player1",5'11,150,R,R,10,OF,17
"player2",5'6,119,R,R,10,2B,13


I am trying to create a PHP page which will look for a specified name in the f ...
  Topic: Best Domain Name to Non-port 80 Practice
RTAdams89

Replies: 9
Views: 13030

PostForum: Networking Issues   Posted: Fri Feb 02, 2007 10:09 pm   Subject: Best Domain Name to Non-port 80 Practice
Yeah. My ISP blocks port 80.
  Topic: Best Domain Name to Non-port 80 Practice
RTAdams89

Replies: 9
Views: 13030

PostForum: Networking Issues   Posted: Fri Feb 02, 2007 4:09 am   Subject: Best Domain Name to Non-port 80 Practice
I have a domain name through godaddy. The web site I want to associate with it is hosted on my computer. The website is hosted on a different port (9555). What is the best way to go about having " ...
  Topic: Alternative to cookies
RTAdams89

Replies: 1
Views: 4505

PostForum: PHP   Posted: Tue Jan 30, 2007 11:59 pm   Subject: Alternative to cookies
I have a website that is designed for a particular monitor resolution. When a person with a smaller screen setting visits the page, a popup window notifies them that it appears better at a larger reso ...
  Topic: Some People can't access my site
RTAdams89

Replies: 9
Views: 2321

PostForum: Off Topic Discussions   Posted: Tue Jan 30, 2007 10:04 pm   Subject: Some People can't access my site
Yes, the music is :evil: but, unfortunately my employer insisted I put it in there. Hey, at least I didn't make it loop or put it on every page. :)
  Topic: Some People can't access my site
RTAdams89

Replies: 9
Views: 2321

PostForum: Off Topic Discussions   Posted: Tue Jan 30, 2007 5:19 am   Subject: Some People can't access my site
Apparently some people are having issues accessing my website. From some locations it works, from others it doesn't. If you could, please try going to www.desertmountainbaseball.com (note, it plays so ...
  Topic: Help testign website accessibility
RTAdams89

Replies: 1
Views: 943

PostForum: Off Topic Discussions   Posted: Tue Jan 30, 2007 2:40 am   Subject: Help testign website accessibility
Hello. I was recently on vacation and noticed an issue with my website. I have several different "sites" in various folders all served from one computer. I have a dyndns account which is lin ...
  Topic: JPEG MIME type issues
RTAdams89

Replies: 5
Views: 9852

PostForum: PHP   Posted: Tue Jan 23, 2007 9:52 pm   Subject: JPEG MIME type issues
I have a PHP script that allows users to upload an image to a directory. Before allowing the upload it does a check of the MIME type to verify it is a JPEG image. I had it set to allow only 'image/jpe ...
  Topic: PHP is causing Abyss to freeze (I think)
RTAdams89

Replies: 6
Views: 14310

PostForum: PHP   Posted: Wed Jan 10, 2007 10:38 pm   Subject: PHP is causing Abyss to freeze (I think)
So, these messages are essentially normal and the underlying issue will present no issues for me? Are there plans to block this error from being reported in the future, or will my log keep growing wit ...
  Topic: PHP is causing Abyss to freeze (I think)
RTAdams89

Replies: 6
Views: 14310

PostForum: PHP   Posted: Wed Jan 10, 2007 10:02 pm   Subject: PHP is causing Abyss to freeze (I think)
I just updated to the new abyss version 2.4 and re enabled FastCGI. It no longer freezes, and everything seems OK, but i still get the following in the fastcgi log:

10/Jan/2007:13:56:02 -0700 SUID: ...
  Topic: Displaying netstat -n
RTAdams89

Replies: 11
Views: 16442

PostForum: PHP   Posted: Fri Dec 15, 2006 2:34 pm   Subject: Displaying netstat -n
pkSML's code worked great, and trying the updated code from aprelium also did the trick. Thanks guys.
  Topic: Displaying netstat -n
RTAdams89

Replies: 11
Views: 16442

PostForum: PHP   Posted: Fri Dec 15, 2006 12:20 am   Subject: Displaying netstat -n
Ahh, OK that makes sense. The issue seems to be somewhere in the

for ($line in explode("\n", $c))
{
list($proto, $from_ip, $from_port, $to_ip, $t ...
  Topic: Displaying netstat -n
RTAdams89

Replies: 11
Views: 16442

PostForum: PHP   Posted: Thu Dec 14, 2006 9:29 pm   Subject: Displaying netstat -n
I had originally tried a script like you just suggested (though mine was a lot messier), and neither work. I could be way off base on this, but I think it might have to do with

($line in explo ...
  Topic: Displaying netstat -n
RTAdams89

Replies: 11
Views: 16442

PostForum: PHP   Posted: Wed Dec 13, 2006 10:33 pm   Subject: Displaying netstat -n
How would I go about doing that to this code:

$connections = `netstat -n`;
echo "<pre>".$connections."</pre>";
  Topic: Displaying netstat -n
RTAdams89

Replies: 11
Views: 16442

PostForum: PHP   Posted: Wed Dec 13, 2006 2:00 pm   Subject: Displaying netstat -n
Doesn't quite do it. I need to show all connections (not just those to port 80) from all IPs.
  Topic: Displaying netstat -n
RTAdams89

Replies: 11
Views: 16442

PostForum: PHP   Posted: Wed Dec 13, 2006 4:44 am   Subject: Displaying netstat -n
One one of my PHP pages I use the following code:


$connections = `netstat -n`;
echo $connections;


With that, I get an output like this:


Active Connections

Proto Local Address ...
  Topic: System Info Script
RTAdams89

Replies: 2
Views: 6069

PostForum: PHP   Posted: Wed Dec 13, 2006 2:02 am   Subject: System Info Script
Thanks, I looked at your script, but it wasn't quite robust enough for me. I ended up modifying that script i referenced in my first post. Here is the new code:
<?

/* This program is free softw ...
  Topic: System Info Script
RTAdams89

Replies: 2
Views: 6069

PostForum: PHP   Posted: Tue Dec 12, 2006 9:26 pm   Subject: System Info Script
I have been trying to find a suitable PHP script that will display system information (up time, disk usage, processor usage, network connections, etc.) of my windows xp server. I have found many, incl ...
  Topic: Using PHP to ping a bunch of html pages
RTAdams89

Replies: 1
Views: 4186

PostForum: PHP   Posted: Fri Dec 01, 2006 2:42 am   Subject: Using PHP to ping a bunch of html pages
Ping may not be the right term, but what I am trying to do is create a script that when given an input such as http://server.com/folder/ will attempt to access every possible 7-character file name ...
  Topic: New to PHP
RTAdams89

Replies: 7
Views: 7869

PostForum: PHP   Posted: Wed Nov 22, 2006 4:03 am   Subject: New to PHP
It sounds like you don't need PHP at all, and instead should learn HTML. Try HTMLgoodies.com for a bunch of tutorials. If you edit html pages with a editor such as dreamweaver or frontpage, you can &q ...
  Topic: Evoluted Dir Listing Script
RTAdams89

Replies: 15
Views: 38172

PostForum: PHP   Posted: Sat Nov 18, 2006 2:46 am   Subject: Evoluted Dir Listing Script
Alright, that seems better. I guess I must have made a typo or something the first time through. One last thing, is there a way to remove the need for the dir_redirect.php file?
  Topic: Evoluted Dir Listing Script
RTAdams89

Replies: 15
Views: 38172

PostForum: PHP   Posted: Sat Nov 18, 2006 1:59 am   Subject: Evoluted Dir Listing Script
It works for me. You probably forgot to make this change.

Exactly which line do I replace with that? I thought I did it, but maybe I changed the wrong line.
  Topic: Evoluted Dir Listing Script
RTAdams89

Replies: 15
Views: 38172

PostForum: PHP   Posted: Fri Nov 17, 2006 9:20 pm   Subject: Evoluted Dir Listing Script
Hum, still not working. Now it redirects me to the index.html file in my server root all the time. Is it working for you?
  Topic: PHP is causing Abyss to freeze (I think)
RTAdams89

Replies: 6
Views: 14310

PostForum: PHP   Posted: Fri Nov 17, 2006 2:22 pm   Subject: PHP is causing Abyss to freeze (I think)
Ok, I did that immediately after I posted my message. It wasn't helping at first, but at a reboot (which presumable ended some of the PHP processes still running) it seems OK now.
  Topic: Evoluted Dir Listing Script
RTAdams89

Replies: 15
Views: 38172

PostForum: PHP   Posted: Fri Nov 17, 2006 5:46 am   Subject: Evoluted Dir Listing Script
One problem. If i navigate to a folder with no index.php or index.html file, it shows the directory listing script as it should. However, once I have that script, i can move up a folder to the server ...
  Topic: PHP is causing Abyss to freeze (I think)
RTAdams89

Replies: 6
Views: 14310

PostForum: PHP   Posted: Fri Nov 17, 2006 5:21 am   Subject: PHP is causing Abyss to freeze (I think)
The last fee days Abyss has sporadically been freezing (no access to the hosted files or the Abyss web interface). The only way to fix the problem is to restart the abyss service. It just happened aga ...
  Topic: Evoluted Dir Listing Script
RTAdams89

Replies: 15
Views: 38172

PostForum: PHP   Posted: Fri Nov 17, 2006 5:12 am   Subject: Evoluted Dir Listing Script
Seems to work well on first glance. If i understand that right, the dir_redirect.php just takes the directory the visitor requests and passes it off to the dir.php as the "path" variable scr ...
  Topic: Evoluted Dir Listing Script
RTAdams89

Replies: 15
Views: 38172

PostForum: PHP   Posted: Fri Nov 17, 2006 1:29 am   Subject: Evoluted Dir Listing Script
Abyss includes the option to use a custom php file as the directory listing script. I tried this script: http://www.evoluted.net/community/code/directorylisting.php and i really like it; however, when ...
  Topic: Problem Having Abyss And Apache on the Same Computer
RTAdams89

Replies: 11
Views: 10891

PostForum: General Questions   Posted: Mon Nov 13, 2006 10:40 pm   Subject: Problem Having Abyss And Apache on the Same Computer
You shouldn't. The only thing to be careful of is that their ports are clashing. For example, abbyss on my PC runs on port 80 and the admin interface is on 9999. If i installed Apache I would have to ...
  Topic: Testing Custom Error Pages
RTAdams89

Replies: 5
Views: 5383

PostForum: General Questions   Posted: Sun Nov 12, 2006 7:22 pm   Subject: Testing Custom Error Pages
Well if i navigate to a page that doesn't exist, i see my custom 404 page. If Use the script you provided to try and view a 404, i just get the standard IE 404 page.

And yes, friendly error message ...
  Topic: Testing Custom Error Pages
RTAdams89

Replies: 5
Views: 5383

PostForum: General Questions   Posted: Sun Nov 12, 2006 3:58 pm   Subject: Testing Custom Error Pages
For some reason when I do that I get standard error pages (in fact not even the default abyss ones, but rather the ones built into Internet explorer) what is that all about?

Oh, and if i disable &q ...
  Topic: Testing Custom Error Pages
RTAdams89

Replies: 5
Views: 5383

PostForum: General Questions   Posted: Sat Nov 11, 2006 11:34 pm   Subject: Testing Custom Error Pages
Is there a way to test the custom error pages I have setup? Obviously, testing 404 is easy, but how about ones such as 408 or the 5xx?
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT + 1 Hour
Jump to:  


Powered by phpBB phpBB Group