title: PHP WHY Warning: filemtime(): stat failed for
body: <pre><code>Warning: filemtime(): stat failed for includes\img\defaultimg.jpg in
  </code></pre>
  
  <p>I read and researched but found nothing useful</p>
  
  <p>in the php manual only says this:</p>
  
  <pre><code>If PHP's integer type is only 32 bits on your system, filemtime() will fail on files over 2GB with the warning "stat failed". All stat()-related commands will exhibit the same behavior.
  </code></pre>
  
  <p>but is just a jpg  900k</p>
  
  <p>this is my code works fine in xammp, but not in production</p>
  
  <pre><code>  $dirimg="includes/img/";  //this one also throws warning
          $filename = "".$dirimg."".$resultsb['Img'].".jpg";  //the path
          if(file_exists ($filename)){  // exists?
          $timeimg=filemtime($filename);
         $srci="".$dirimg."".$resultsb['Img'].".jpg?=".$timeimg."";   
          }else{$timeimg=filemtime("includes\img\defaultimg.jpg");  //another path, the file does exists
         $srci="includes\img\defaultimg.jpg?=".$timeimg.""; } // 
  </code></pre>
  
  <p>both throw the same warning in the respective path,  the file exits btw</p>
  
  <p>the image can be seen, 
  but i need to know
  when it is modified so the browser refreshes it</p>