ok, try this, from my system this is working;
hope it works for you 😉
<?php
$file = "http://free.x3.hu/bighed/index.html";
$fp = fopen($file,"r");
$getid = substr($fp,strlen($fp)-1);
if( (integer)$getid==2 )
{
print "Could not open file or file does not exist";
}
else {
print "File Found $file";
}
fclose($fp);
?>