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?

Feb 28th, 2008 00:01
dman, Cinley Rodick, John Marc, Curt Woodard, http://www.ttnr.org


$url="http://down.com";
$ok= fsockopen($url, 80, &$errno, &$errstr, 30);
if (!$ok) echo "server down....";