Directory files scanner with sorting.

Coding Critique is the place to post source code for peer review by other members of DevNetwork. Any kind of code can be posted. Code posted does not have to be limited to PHP. All members are invited to contribute constructive criticism with the goal of improving the code. Posted code should include some background information about it and what areas you specifically would like help with.

Popular code excerpts may be moved to "Code Snippets" by the moderators.

Moderator: General Moderators

User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

Use $data['name'] instead of $file.
jleampark
Forum Newbie
Posts: 16
Joined: Wed Jul 27, 2005 6:46 am

Post by jleampark »

Wonderful!

I shall name my first-born in my next life after you.

Thanks much.
printf
Forum Contributor
Posts: 173
Joined: Wed Jan 12, 2005 5:24 pm

Post by printf »

Jcart wrote:Might want to take a look at this snipplet posted by feyd. Nice way of making a directory tree without recursion.

But RecursiveDirectoryIterator is terrible slow and does use recursion, it pushes on to the stack, believe or not a while loop with using eval() is over 20 times faster.
Post Reply