title: How can I get rid of a filesize() warning in PHP?
body: <p>Other than turning warnings off.. what can I do in my code to get rid of this error:</p>
  
  <pre><code>warning: filesize() [function.filesize] stat failed for ....  on line 152
  </code></pre>
  
  <p>The code is:</p>
  
  <pre><code>$store_filesize = filesize($file-&gt;filepath);
  </code></pre>