|
Posted by Chung Leong on 07/23/06 15:31
laredotornado@zipmail.com wrote:
> Hello, Using PHP 4, is there a fucntion that counts the files in a
> given directory? You can assume there are no sub-directories within
> this directory and hence, no files within the sub-directories.
>
> Thanks for any functions or one-liners. - Dave
count(glob("$dir/*.*"));
Navigation:
[Reply to this message]
|