Re: How can I get in PHP the number of files in a directory
| From: | Stut | Date: | Wed, 31 May 2006 12:36:22 +0000 |
| Subject: | Re: How can I get in PHP the number of files in a directory | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-41955@lists.php.net to get a copy of this message | ||
suad wrote:
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?http://php.net/glob or http://php.net/readdir -Stut