So, the code is like this:
$n_user = 0;
while ($filename = readdir($dir))
{
if ((eregi(".php",$filename)))
{
$array_dir[$n_user] = $filename;
$n_user++;
}
$timestamp = filemtime($filename);
$data = date("F jS Y", $timestamp);
echo "$data";
echo "<br>";
}
this code print:
October 9th 2004
January 1st 1970
January 1st 1970
January 1st 1970
January 1st 1970
Only first file in dir have correct date.
who i wrong?