| | |
server uptime
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Mar 2008
Posts: 70
Reputation:
Solved Threads: 1
how algorithm of server uptime in php ?
http://www.duniaislam.site50.net
Others Social Bookmarking http://www.bisnis-indonesia.org
Business Web Directory
http://www.bisnis-indonesia.biz
Others Social Bookmarking http://www.bisnis-indonesia.org
Business Web Directory
http://www.bisnis-indonesia.biz
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:
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.
PHP Syntax (Toggle Plain Text)
(d/t)*10
![]() |
Similar Threads
- server uptime application (PHP)
- Proxy Hosting & Shared Hosting - Excellent uptime, reviews, prices and more (Web Hosting Deals)
- Maiahost 99.9% Uptime, Reliable Cpanel Hosting, Fast servers, CMS hositng (Web Hosting Deals)
- What's better? Windows 2000 Server or Linux Server? (Windows Servers and IIS)
- Linux Dedicated server just for 74GBP/month (Web Hosting Deals)
- 99.9% Uptime, Reliable Cpanel Hosting, Fast servers, Great support 24/7 (Web Hosting Deals)
- High speed servers with 99.9% SLA uptime guaranteed! (Web Hosting Deals)
Other Threads in the PHP Forum
- Previous Thread: A File Loading Script Help...
- Next Thread: A problem with date and mysql query
| Thread Tools | Search this Thread |
.htaccess ajax apache api array beginner binary body broken cakephp checkbox class cms code cron curl database date date/time display dynamic echo email error file files folder form forms function functions global google href htaccess html image include insert integration ip java javascript joomla limit link list login loop mail memmory menu mlm mod_rewrite msqli_multi_query multiple mycodeisbad mysql navigation oop parameter paypal pdf php problem query radio random recourse recursion regex registrationform remote script search seo server sessions sms soap source space sql static syntax system table tutorial update upload url validation validator variable video web webdesign wordpress xml youtube





