I am attempting to retrieve image properties (width and height) from a listing in a directory and store them into an array. I have been looking at using two dimensional arrays but can't seem to get them working. The following code only retrieves the first image it comes across..
$dir = dir("./db-movie/$alphabetletter/$moviedirectory");
while($file = $dir->read()) {
$imagedetails = GetImageSize ("./db-movie/$alphabetletter/$moviedirectory/$file");
}
$dir->close();
and I access the data using:
$imagedetails[0] and $imagedetails[1]
It would be greatly appreciated if anyone could help me out on how to get multiple image details to be stored in a 2D array aswell as accessing the data.
Thanks in advance!!
Clint