Re: A Quick One - Count Files
| From: | Jeff Wilhelm | Date: | Tue, 08 Aug 2000 19:29:28 +0000 |
| Subject: | Re: A Quick One - Count Files | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-10762@lists.php.net to get a copy of this message | ||
Never mind... ignore my brain lapse. This'll work:
<?php
$dir = opendir('/var/www/C003703/gather/news') or die('Could not open news
directory.');
while ($file = readdir($dir)){
$files[] = $file;
}
closedir($dir);
print count($files);
?>