fwrite($fp,$out);
$content=fgets($fp);
$code=trim(substr($content,9,4));
fclose($fp);
return ($code[0] == 2 || $code[0] == 3) ? TRUE : FALSE;
}
if (urlOK($url)) echo " is a working URL";
else echo " is a bad URL";
?>
From the above code we can get the information like if the URL exists in a particular PHP file.