title: PHP filesize() works on all but one file, gives stat failed error
body: <p>I'm writing a PHP page that generates a podcast feed by scraping an existing HTML page. Everything works great, but one of my mp3 files gives a "filesize(): stat failed" error. As best as I can tell, the file isn't corrupted, and it plays perfectly fine. I've also reuploaded the file to the server. It falls in the middle range of all the file sizes, so I don't think the file is too large. Because every other file returns a file size, I'm assuming the problem is with the mp3 file, not with my server configuration. Is there something else I should be checking? </p>
  
  <p>Here's the relevant part of my code:</p>
  
  <pre><code>$i = 1; //skipping header row on table
  do {
      $tr = $table-&gt;find('tr', $i);
  
      $date = $tr-&gt;find('div', 0)-&gt;plaintext;
      $datetime = new DateTime($date);
      $speaker = $tr-&gt;find('div', 1)-&gt;plaintext;
      $title = $tr-&gt;find('div', 2)-&gt;plaintext;
      $url = $tr-&gt;find('div', 3)-&gt;find('a', 0)-&gt;href;
      $fullurl = "http://domain.org/resources/".$url;
      $filesize = filesize($url); //&lt;---works on every file except one
  
      echo "&lt;item&gt;&lt;title&gt;".$title."&lt;/title&gt;\n";
      echo "&lt;description&gt;".$title." - ".$datetime-&gt;format('D, M jS, Y')." - ".$speaker."&lt;/description&gt;\n";
      echo "&lt;itunes:author&gt;".$speaker."&lt;/itunes:author&gt;\n";
      echo "&lt;enclosure url=\"".$fullurl."\" length=\"".$filesize."\" type=\"audio/mpeg\"/&gt;\n";
      echo "&lt;guid isPermaLink=\"true\"&gt;".$fullurl."&lt;/guid&gt;\n";
      echo "&lt;pubDate&gt;".$datetime-&gt;format('r')."&lt;/pubDate&gt;\n";
      echo "&lt;itunes:explicit&gt;clean&lt;/itunes:explicit&gt;&lt;/item&gt;\n\n";
  
      $i++;
  }while ($table-&gt;find('tr', $i) != NULL);
  </code></pre>
  
  <p>As requested: (do people point out edits? This is my first question here..)</p>
  
  <p>The filename is "12-20-09_AM_Podcast.mp3" which follows the naming convention of every other file, and all the files have permissions of 644. The full error code is</p>
  
  <pre><code>&lt;b&gt;Warning&lt;/b&gt;:  filesize() [&lt;a href='function.filesize'&gt;function.filesize&lt;/a&gt;]: stat failed for audio/12-20-09_AM_Podcast.mp3 in &lt;b&gt;/homepages/1/d106955786/htdocs/victory/resources/podcast1.php&lt;/b&gt; on line &lt;b&gt;45&lt;/b&gt;&lt;br /&gt;
  </code></pre>