943,648 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 781
  • PHP RSS
Feb 16th, 2009
0

server uptime

Expand Post »
how algorithm of server uptime in php ?
Similar Threads
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
forzadraco is offline Offline
70 posts
since Mar 2008
Feb 16th, 2009
0

Re: server uptime

Well I'm assuming your trying to ask how to calculate the server uptime in PHP. Really there are not defined function of methods for this. You can ask your host, they should know. If you want to find out, you would have to have direct access to the servers. Take a trial period, say a month and monitor how long the server is up. This includes closings for updates, power outages, etc. Then simply calculate the total hours of the trial period (well call that t), and the total hours of maintenance or downtime (well call this d). Then use this formula:
PHP Syntax (Toggle Plain Text)
  1. (d/t)*10
That should give you a percent you can use, but determining the server uptime with a script is pretty much impossible, you can do constant test like the one above and update the script with the results, but that's the best you can do.
Reputation Points: 47
Solved Threads: 47
Posting Whiz
FlashCreations is offline Offline
393 posts
since Sep 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: A File Loading Script Help...
Next Thread in PHP Forum Timeline: A problem with date and mysql query





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC