How can I get in PHP the number of files in a directory
| From: | suad | Date: | Wed, 31 May 2006 13:32:10 +0000 |
| Subject: | How can I get in PHP the number of files in a directory | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-41954@lists.php.net to get a copy of this message | ||
Hi,
This is for reading a file:
<?php
$handle = fopen("/home/rasmus/file.gif", "r");
?>
How can I get in PHP the number of files in the directory (rasmus)
and the files names in a loop?
Thanks
Suad