Fileinformation
| From: | Markus Fruhmann | Date: | Thu, 31 Aug 2000 15:08:08 +0000 |
| Subject: | Fileinformation | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-2344@lists.php.net to get a copy of this message | ||
Hi,
i want to get the information about filesize, date of last changes ans so on of files in a specific
directory.
I tried this code:
<?
$handle=opendir("d:\audio");
echo $handle, "<br><br>";
while ($file = readdir($handle)) {
echo $file, " ", filesize($file), "<br>";
}
closedir($handle);
?>
but the only thing that works is to show the directory contents.
I'm getting Filesize 0 for the "updirectory symbols" . and .. !
For Filesize i don't get anything. Has anyone else tried this under Windows NT?
Hoping for help,
Markus