| | |
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
Views: 485 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code codingproblem cron curl database date directory display download dynamic echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla jquery limit link login loop mail menu methods mlm mod_rewrite multiple mysql oop parse paypal pdf php problem query radio random recursion regex remote script search select send server sessions sms soap source space speed sql static structure syntax system table tutorial up-to-date update updates upload url validation validator variable video web wordpress xml youtube





