How to check if a file exist on an external server
<p>How to check if a file exist on an External Server? I have a url "http://logs.com/logs/log.csv" and I have an script on another server to check if this file exists. I tried </p>

<pre><code>$handle = fopen("http://logs.com/logs/log.csv","r");
if($handle === true){
return true;
}else{
return false;
}
</code></pre>

<p>and</p>

<pre><code>if(file_exists("http://logs.com/logs/log.csv")){
return true;
}else{
return false;
}
</code></pre>

<p>These methos just do not work</p>
