| | |
server uptime application
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
anyone can help mo to tell the algorithm how to make server uptime application like serveruptime.com?
http://www.duniaislam.site50.net
http://www.duniaislam.site50.net
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
•
•
Join Date: May 2006
Posts: 18
Reputation:
Solved Threads: 0
Hi Darco,
I assume you're after the PHP function you'd use for checking whether a server is up (the rest will just be a database of the sites you're monitoring).
Personally, I'd probably about it with a socket_connect call, that should be able to confirm a connection existing to an address, which I guess is all you are looking to confirm.
I assume you're after the PHP function you'd use for checking whether a server is up (the rest will just be a database of the sites you're monitoring).
Personally, I'd probably about it with a socket_connect call, that should be able to confirm a connection existing to an address, which I guess is all you are looking to confirm.
James
BeachyUK.com
BePing - Free Windows Ping Utility
Web Hosting from £5 per year (~$4pa) - Special Offer while we test our payment systems
•
•
Join Date: May 2006
Posts: 18
Reputation:
Solved Threads: 0
Actually, thinking it through, perhaps I'd go with something more like this... If you wanted to, you could read the contents of the URL, though I imagine you just want an UP or DOWN decision, I think the below would do the trick.
PHP Syntax (Toggle Plain Text)
$cn = fsockopen ('http://www.daniweb.com', 443, $errnum, $errdesc, 30); if (!$cn) { // Can't Connect to URL $sitestatus="DOWN"; }else{ // Connected fine - URL works $sitestatus="UP"; }
James
BeachyUK.com
BePing - Free Windows Ping Utility
Web Hosting from £5 per year (~$4pa) - Special Offer while we test our payment systems
![]() |
Similar Threads
- What's better? Windows 2000 Server or Linux Server? (Windows Servers and IIS)
- difference between session and application scope at jsp (JSP)
- Hurry! ASP.NET AJAX Hosting (Formerly ATLAS) for $1.67/mo only (Web Hosting Deals)
- Hurry! Cheap Private Label ASP.net 2/ColdFusion MX/SQL 2005 Windows Reseller Hosting! (Web Hosting Deals)
- Hurry! Cheap Private Label ASP.net 2/ColdFusion MX/SQL 2005 Windows Reseller Hosting! (Web Hosting Deals)
- Despite all attempts, I still can't get rid of this webpage! (Viruses, Spyware and other Nasties)
Other Threads in the PHP Forum
- Previous Thread: pop up window
- Next Thread: comment function
| Thread Tools | Search this Thread |
.htaccess ajax apache api array beginner binary broken buttons cakephp checkbox class cms code cron curl database date directory display download dynamic ebooks echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla limit link login loop mail mediawiki menu mlm mod_rewrite multiple mysql number oop paypal pdf php phpincludeissue phpmyadmin problem query radio random recursion regex remote script search server sessions sms soap source sp space speed sql subdomain syntax system table tag tutorial update upload url validation validator variable vbulletin video web websphere white xml youtube





