searching multiple folders

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
1618
Forum Newbie
Posts: 1
Joined: Fri Apr 24, 2009 7:28 pm

searching multiple folders

Post 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?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: searching multiple folders

Post 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.
Post Reply