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