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

    • [deleted]

    It really helps if you tell us what kind of errors you get.

      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...

        Try put the exe file in the same directory as your PHP file. It should work.

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

          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

            Write a Reply...