Include Subfolders

Locked
Phate
User
Posts: 1
Joined: Fri Mar 15, 2013 4:19 pm
Are you a spambot?: no

Include Subfolders

Post by Phate » Fri Mar 15, 2013 4:28 pm

Hey Guys

Is there any way to include subfolders? I have about 200 folders with a lot of subfolders.
I'd like to show all the mp3 files from the topfolder.

Thanks and Greets
Phate

James Heinrich
getID3() v1 developer
Posts: 1457
Joined: Fri May 04, 2001 4:00 pm
Are you a spambot?: no
Location: Northern Ontario, Canada
Contact:

Re: Include Subfolders

Post by James Heinrich » Fri Mar 15, 2013 4:33 pm

Deciding which files to analyze and how to present the analyzed information is left up to the user. You're free to walk through your whole directory structure, the PHP functions opendir and readdir are useful for creating a recursive directory-tree-walking analysis function.
http://www.php.net/manual/en/function.opendir.php
http://www.php.net/manual/en/function.readdir.php
http://www.php.net/manual/en/function.closedir.php

Locked