PHP Delete file ~ stat failed
<p>Why it show me:</p>

<p><code>Warning: filemtime() [function.filemtime]: stat failed for waht.txt</code></p>

<p>Code:
        

<pre><code>    $dir = 'test';
    if ($handle = opendir($dir)) {

        while (false !== ($file = readdir($handle))) { 
            $filelastmodified = filemtime($file);

            if(($filelastmodified-time()) &gt; 1)
            {
               unlink($file);
            }

        }
    closedir($handle); 
}
?&gt;
</code></pre>
