server uptime

Reply

Join Date: Mar 2008
Posts: 70
Reputation: forzadraco is an unknown quantity at this point 
Solved Threads: 1
forzadraco forzadraco is offline Offline
Junior Poster in Training

server uptime

 
0
  #1
Feb 16th, 2009
how algorithm of server uptime in php ?
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 184
Reputation: FlashCreations is an unknown quantity at this point 
Solved Threads: 15
FlashCreations's Avatar
FlashCreations FlashCreations is offline Offline
Junior Poster

Re: server uptime

 
0
  #2
Feb 16th, 2009
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:
  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.
FlashCreations
(aka PhpMyCoder)

About Me | My Blog | Contact Me
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC