System Uptime in PHP
Results 1 to 2 of 2

Thread: System Uptime in PHP

  1. #1

    Question System Uptime in PHP

    I'm running Apache Win32 for my webserver and was loooking for somthing on the net that could get my system uptime in php. I looked at and read the HTTP thing didn't see anything that could help. Does anyone know a way to do it?

  2. #2
    Senior Member
    Join Date
    Aug 2001
    try the following:
    download uptime.exe from microsoft
    copy the app into the same directory as your php script
    write php script:

    PRINT exec("cmd /c uptime");

    this should show uptime
    there is also the possibility to do this with perl (if you can)

    "Knowledge is the Real Power"
    \"Knowledge is the Real Power\"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts