recursion - Php recursive directory listing flow -



recursion - Php recursive directory listing flow -

i have various projects going on need document , display pictorial progress on. set project\year\month\pic.jpg... planning on having in root of section index.php list directorys , create link when clicked pass project\ directory listing.php page. listing php read contents of project\ files in directory create initial page content. listing.php read \project\year\month\ directorys in order. @ bottom of listing.php page href=year\month. if 1 of links year-month clicked open page view pictures in abc-123 order. have dropdown selecting other year/month's , next/previous button.

i readdir / scandir part , can list single dir eaisly enough. have no thought how create callback work or if/how create dynamic global arrays store info in. memory comsumption isnt troubling me directorys 2-3 deep couple projects have 40k or images. average looks 3k or less photos

if php bad way of doing way listing.php type page current , display pages dont have worry having updated via script every often.

you'll want utilize iterators, - see question , it's answer: php recursive directory path

php recursion directory

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -