/*
array get_headers ( string $url [, int $format = 0 ] )
*/
$url = "http://www.collectivesolver.com/questions";
$headers = @get_headers($url);
//print_r($headers);
if (strpos($headers[0], "404 Not Found"))
echo "404 Not Found - URL NOT exists";
else
echo "200 OK - URL exists";
/*
run:
200 OK - URL exists
*/