ok i have this code that now opens a directory with MP3's in it, traverses the directory and adds the filenames to an array or something, i'd like to adjust it so i can put MP3's of different albums in different folders and i want the code to traverse the different folders and get the files just as before, here is the current code, the part that opens and goes through the files$dir = PATH . "/" . MP3_PATH;// Read directoryif (is_dir($dir)) { if ($dh = opendir($dir)) { while (($file = readdir($dh)) !== false) { $full_name = "$dir/$file"; if (is_file($full_name)) { $files[$full_name] = $file; } elseif ($file[0] != '.') { $dirs[$full_name] = $file; } } closedir($dh); }}
12/12/2007 2:18:51 PM
http://www.the-art-of-web.com/php/dirlist/[Edited on December 12, 2007 at 2:33 PM. Reason : i don't know what you want, look up mkdir() and copy()]
12/12/2007 2:24:23 PM
what is your question?
12/12/2007 2:37:25 PM
the current code opens $dir then goes through all the mp3's in the folder to make a list of filesi want to have subfolders with mp3s in it, then the code go through the different folders and make the same list, thats all
12/12/2007 2:40:39 PM
http://forums.thewickedflea.com/showthread.php?tid=26the guy has a big ron paul banner as his signature, though... so i dunno if he's trustworthy [Edited on December 12, 2007 at 2:51 PM. Reason : .]
12/12/2007 2:43:03 PM
yeah that makes sense, i can do it in c or java, but im not too good with php
12/12/2007 2:49:58 PM
look at part 2 of that link i posted
12/12/2007 2:51:17 PM
I used this before to the same thing.http://www.bitfolge.de/snif-en.html
12/12/2007 2:55:31 PM