What is the fastest method to count the number of files in a directory with PHP?

Madgeek

New member
I have a directory that is going to have more than 500 files in it. How can I quickly retrieve the number of files in this directory? Is there a better/quicker method than: count(glob('*.*'))?
 
Back
Top