title: Uploaded file with white space makes is_resource() fails - php
body: <p>I have a script checking if a file exists: </p>
  
  <pre><code>function fileExists($url) {
      $fh = fopen($url, 'r');
      if (is_resource($fh)) {
          fclose($fh);
          return true;
      }
      return false;
  }
  </code></pre>
  
  <p>Everything went right until I tried to uploaded files whose name contains white space. Call <code>$url</code> the file's url, when I put it in the browser, it displays correctly the file, but <code>is_resource($fh)</code> always returns false. Someone could help ?</p>