Page 1 of 1

searching multiple folders

Posted: Fri Apr 24, 2009 7:56 pm
by 1618
Is it possible to search multiple folders with php? I have exceeded the file limit in one of my folders and want to divide the folder alphabetically into 26 new folders. Trouble is there is a search operation on files in the folder and I don't know how to program a search of multiple folders?

Re: searching multiple folders

Posted: Sat Apr 25, 2009 1:28 am
by requinix
Use a naming scheme. If you want to place "file.jpg" somewhere then put it in /path/f/file.jpg. So the directory name is the first character in the filename.