Since the http-wrapper doesn't support stat() and so you can't use file_exists() for url's, you can simply use a function like this:
<?php
function http_file_exists($url)
{
$f=@fopen($url,"r");
if($f)
{
fclose($f);
return true;
}
return false;
}
?>
--was--
Since the http-wrapper doesn't support stat() and so you can't use file_exists() for url's, you can simply use a function like this:
function http_file_exists($url)
{
$f=@fopen($url,"r");
if($f)
{
fclose($f);
return true;
}
return false;
}
http://php.net/manual/en/function.fopen.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.