Forum Moderators: coopster
www.example.com/a.php --> 200 THEN fopen()
www.example.com/b.php --> 404 THEN die()
I so would like to low overhead of server.
Any help appreciated. Regards.
[edited by: eelixduppy at 7:56 pm (utc) on April 15, 2007]
[edit reason] example.com [/edit]
$ch = curl_init('http://www.example.com');
curl_setopt($ch, CURLOPT_NOBODY, true);
curl_exec($ch);
$status_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
//$status_code contains the HTTP status: 200, 404, etc.