I am wanting to count the number of items in a folder and write a conditional statment based on the number of files found in the folder.
what is the best way to retrieve the number of items in a folder?
Thanks in advance,
Alex
Check this page: http://www.php.net/manual/en/function.opendir.php
You'll have to read each entry in the directory and increase a counter every time.
Diego