Forum Moderators: coopster
However, prior to PHP 5.0.0 these functions will not work on remote files as the file to be examined must be accessible via the servers filesystem. Why not just try to open the file and monitor for errors? You could simply suppress any errors by using the PHP error control operator (@) [php.net]. Something along the lines of ...
if (@file_get_contents('http://mysite.com')) {
// success!
} else {
// failure :(
}