I'm trying to write a php script to count the number of files within a folder and its subdirectories
Code: Select all
<?php
$count = 0;
foreach( glob( "images/*.*" ) as $filename ) {
$count++;
}
echo $count;
?>thanks
Moderator: General Moderators
Code: Select all
<?php
$count = 0;
foreach( glob( "images/*.*" ) as $filename ) {
$count++;
}
echo $count;
?>