(Managed to post an uncomplete version first time 🙂
Hi,
I currently have a script that grabs the ID3 tags from a directory of mp3s, and writes them to a MySQL database. This works great.
But how do I get it to do it for all subdirectories aswell?
essentially i'm currently using:
$handle = opendir('.');
while ($FilenameToScan = readdir($handle)) {
if (ereg(".mp3$", $FilenameToScan)) {
// get id3 info and write to database code here
}
}
Thanks,
Coops