hi
I have no clues about arrays or dir functions. :o
$dir would be the folder i'm checking for files in. I wish to count the number of files in a folder - if it has files inside then it gives the number of files, if there are no files in the folder then i wish it to display 0.
No matter what i do i end up with a bunch of 1s or 0s.
Please help
$open = opendir($dir);
while (false !== ($cFold = readdir($open))) {
$count = array("something" => $cFold[0]);
echo count($count['something']);
}
closedir($open);