Re: Fileinformation
| From: | Jason Brooke | Date: | Thu, 31 Aug 2000 15:43:39 +0000 |
| Subject: | Re: Fileinformation | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-2348@lists.php.net to get a copy of this message | ||
Tried stat() ?
http://www.php.net/manual/function.stat.php
jason
----- Original Message -----
From: "Markus Fruhmann" <fruhmann@irt.de>
To: "Php-Windows (E-mail)" <php-windows@lists.php.net>
Sent: Friday, September 01, 2000 1:08 AM
Subject: [PHP-WIN] Fileinformation
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