Click to See Complete Forum and Search --> : uptime win32


Anon
10-03-2001, 04:51 AM
i recently got uptime.exe from Microshaft's site and was intending to write some php that would exec c:\uptime.exe and print the results from running the file into the html..
For some odd reason.. even trying PRINT exec("cmd /c uptime"); it still will error on the page.. i have tried numerous cmd's and still have had no luck.. if anyone can help it would be greatly appreciated.. i know there others out there having the same problem .. my email is suesses@mediaone.net
thanx

vincente
10-03-2001, 06:34 AM
It really helps if you tell us what kind of errors you get.

suess
10-03-2001, 02:04 PM
Warning: Unable to fork [cmd /c uptime] in c:\Inetpub\wwwroot/scripts/test.php on line 2

well i figured it was a given .. it cant fork it no matter what... is there another cmd i can use to run an EXE in PHP...

Anon
10-05-2001, 02:26 PM
Try put the exe file in the same directory as your PHP file. It should work.

Or try this exec("c:/uptime.exe");

eiffel
10-08-2001, 06:11 AM
hm i think there is a reg key in windows
it self that counts the uptime
at polaris mirc there are uptime scripts that read that variable my be u can copy
it for a php script or something