Hey there.
Been looking this up a bit and managed to come across this.
<?
$dir = '/FOLDER/';
$filecount = 0;
$d = dir($dir);
while ($f = $d->read()) {
if(($f!= ".") && ($f!= "..")) {
if(!is_dir($f)) $filecount++;
}
}
echo 'there are ',$filecount,' files in this folder';
?>
Just wondering if it's possible to modify this to count all files within the folder set in $dir, along with sub directories, and only files with a specified extension. ie. MP3.
Cheers 😃