Glob - Count the files
Posted: Fri Apr 28, 2006 10:47 am
Hey, i think im in love with glob, it works with so many things. But i ahve a question, how would i count the files which have been displayed through glob.
I tryed
or
But it didnt seem to work, and the output is 1111111111 or 0000000000. Does anyone know why or where im going wrong?
Thanks in advance!
LOVE YOU <3
I tryed
Code: Select all
$numberoffiles = count(glob("$files"));Code: Select all
$numberoffiles = count(glob("$path"));Thanks in advance!
LOVE YOU <3