Showing posts with label url. Show all posts
Showing posts with label url. Show all posts

Thursday, January 18, 2007

PHP function see if url exists

Here is an simple usefull function see if an url exists

function url_exists($url)
{
$handle = @fopen($url, "r");
if ($handle === false)
return false;
fclose($handle);
return true;
}