| | |
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 |
Tag cloud for PHP
.htaccess access ajax alerts apache api array beginner binary broken cakephp checkbox class cms code convert cron curl database date directory display download dynamic echo email error file files folder form forms function functions google hack href htaccess html htmlspecialchars image include insert integration ip java javascript joomla limit link login loop mail menu methods mlm mod_rewrite multiple mysql network object oop overwrite parse paypal pdf php problem query radio random recursion redirect regex remote script search securephp server sessions sms soap source space sql structure syntax system table tutorial update upload url validation validator variable video web xml youtube





