faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

1 of 7 people (14%) answered Yes
Recently 1 of 7 people (14%) answered Yes

Entry

How can you determine if another website is active (The server is running) or not?

Nov 27th, 2008 14:27
healthy man, dman, Cinley Rodick, John Marc, Curt Woodard,


$url="http://down.com";
$ok= fsockopen($url, 80, &$errno, &$errstr, 30);
if (!$ok) echo "server down....";
http://www.healthdothealth.com
http://www.healthxhealth.com
http://www.mesotheliomainmesothelioma.com
http://www.healthfirewall.com
http://www.flathealth.com
http://www.healthbodyguard.com