filemtime problem
| From: | Todd Cary | Date: | Fri, 18 Oct 2002 16:16:33 +0000 |
| Subject: | filemtime problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-120532@lists.php.net to get a copy of this message | ||
In the "test script" below, $unixtime is false. What am I missing?
<?php
include "test.inc";
if ($handle = opendir($fullpath . 'files')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
//echo "$file" . " ";
echo ($fullpath . $file . "<br>");
// An example of a file name is "/var/www/html/aralbum/php/artscard_dump.txt"
$unixtime = filemtime($fullpath . $file);
if ($unixtime) echo (date("Y m d", $unixtime) . "<br>");
}
}
closedir($handle);
}
?>
--
Ariste Software, Petaluma, CA 94952