title: How to check if a file exist on an external server
body: <p>How to check if a file exist on an External Server? I have a url "<a href="http://logs.com/logs/log.csv" rel="noreferrer">http://logs.com/logs/log.csv</a>" 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>