Page 1 of 1

counting number of files in folder

Posted: Tue Oct 07, 2008 10:38 am
by kkonline
I want to count the number of html files present in a folder; and then display the resulting number; how can i do this; is there any inbuilt php function or command?

Re: counting number of files in folder

Posted: Tue Oct 07, 2008 11:52 am
by RobertGonzalez
count() and glob(). Read the manual on those two functions to see how they can be easily used to give you what you want.