hi, wondered if you may be able to help me.
I'm trying to write a php script to count the number of files within a folder and its subdirectories
<?php
$count = 0;
foreach( glob( "images/*.*" ) as $filename ) {
$count++;
}
echo $count;
?>
but it only counts files in the one folder. How do i make it include subdirectories?
thanks 🙂