$flag = url_exists("http://www.example.com/somepage.html");
function url_exists($url)
{
$handle = @fopen($url, "r");
if ($handle === false)
{
return false;
}
else
{
return true;
}
fclose($handle);
}

0 comments:
Post a Comment