![]() |
Fix recursive function on a directory listing
Good day to you,
Here i'm still working on my list of files pushed to an array. I'm now working on recursively display the list, when it read the files and it find a directory, it should go through and list the files and folders.. so on.. I know my code is wrong, this is why I come to you, I want to learn. My code do the thing but only does it once. My problem : My code don't read recursively, it only go to the 2nd level of foler if any. How could I improve this ? PHP Code:
Each folder result should be placed in a div. If there is a folder create a new div within the other and list the files in.... Thanks ! |
For some reason I feel like I went back in time cause I remember you posting the exact same thing decades ago. :P
|
| All times are GMT. The time now is 11:34 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0