If the files are constantly changing, scandir is probably as fast as it gets... If you rarely alter the files, do scandir once and store the results in, say, MySQL and you can search/sort MUCH faster. On Sat, April 8, 2006 11:01 am, Nicholas Couloute wrote: > On my website http://www.sidekick2music.com ! I use scandir() [php > 5.0] > to fetch all the files which are all in subfolders of this one folder. > like this: > public_html/amrs/$cat/$author/*.amr > > $cat = different catergoried of music > $author = Authors of the particular catergory > > This way isn't fast when you have over 5,000+ files. > > I use flatfile for everything on the site! > site: http://www.sidekick2music.com > > Would it run faster if I used mysql? > How would this be done? > Is there another way when dealing with files and organizing them? CMS? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php