title: PHP - check if a file is EOF
body: <p>Is it possible to check whether a file is completed(EOF) or is partially(corrupted) </p>
  
  <p>I try :</p>
  
  <pre><code>$_file = @fopen($filePath, "r");
  $isComplete = feof($_file);
  fclose($file);
  </code></pre>
  
  <p>but it return empty.</p>