note 47204 deleted from function.readdir by tomsommer
| From: | tomsommer@php.net | Date: | Fri, 05 Nov 2004 21:19:10 +0000 |
| Subject: | note 47204 deleted from function.readdir by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-80182@lists.php.net to get a copy of this message | ||
Note Submitter: Mr dot Pkmn < mrpkmn_5 at hotmail dot com >
----
I want view the filesize while readdir() read the file list of a directory. Can you help please?
Contact via e-mail.
I want this for my forum phpBB:
<?php
$handle = opendir($root);
while (false !== ($dim = filesize(readdir($handle))/1024)) {
echo "<td class=\"row1\" width=\"25%\"
align=\"center\"><span class=\"gen\">". $dim ." KB
<td>"; }
closedir($handle);
?>
Thanks