943,540 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 366
  • PHP RSS
Feb 24th, 2009
0

algorithm serveruptime.com

Expand Post »
please tell me the algorithm serveruptime.com and how ping and get ping result in php

http://www.kampanye-damai-pemilu-ind...2009.comyr.com
Similar Threads
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
forzadraco is offline Offline
70 posts
since Mar 2008
Feb 24th, 2009
0

Re: algorithm serveruptime.com

If you are talking about working out the downtime of your server then I would suggest setting up 2 crone jobs. One crone job occurs every minute and the other once a day all year round. The job that occures every minute will append to a mysql database that the server is still running. Then the job that occures once a day will use that data to spot any gaps of when the server did not append anything to the mysql database which will then submit the daily report to another database while clearing the entries in the database that is appended to every minute. But you will need to be carefull when setting up this sort of crone job so that you don't slow down the server. That bit of theory should explain.
Sponsor
Featured Poster
Reputation Points: 410
Solved Threads: 258
Occupation: Genius
cwarn23 is offline Offline
3,004 posts
since Sep 2007

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: help form mail script. line 17
Next Thread in PHP Forum Timeline: select some part of data frm db?





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


Follow us on Twitter


© 2011 DaniWeb® LLC