Advanced Array Processing
Requirement:
I have dumped a bunch of images in 1 directory folder
i have an array that holds all of those images
from this array of images
i want to be able to create photosets based on each image’s file modification date
i want to be able to arrange them seperately from that array
example:
$photoset1_10/09/2010 = array()
$photoset2_05/10/2010 = array()
$photoset3_31/11/2010 = array()
$photoset3_25/12/2010 = array()
$storage = array();
$storage[0] = $photoset1_10/09/2010
$storage[1] = $photoset2_05/10/2010
$storage[2] = $photoset3_31/11/2010
$storage[3] = $photoset3_25/12/2010
instead of the user having to scroll through a large list of images they can jump to a photoset
which one of the built in PHP Iterators will allow me to do this …
i know i could put the files back manually into folders…but i want the code to do the work…
any ideas would be great
//===============================================
Code
//==============================================
"; print_r($results); } $fileresults = getFileModTime("G:/xampplite/htdocs/Content/Models/penny_all"); getFileByDate($fileresults); echo ""; print_r($fileresults);