Hi,
I was wondering how I can use PHP to count files in a directory that are of a certain file type - for example, counting how many gifs there are.
Thanks in advance...
Paul
read the manual about the opendir() function.
Just do the sizeof() function; <?php $dir=dir("."); while($issize = sizeof($dir)) { echo $issize."KB"; } ?>
Which version of PHP lets you do that? :-)
Methinks thou has made a booboo....
(a big, eternally looping booboo)