![]() |
Array, add file info ...
Good day to you all,
I have a script here that read a directory and return the files to an array. I need that array to also contain the last modified date, width, height and size of the files, they are images. here's what I'm working with : PHP Code:
Take good care ! |
Quote:
What I mean for that is PHP Code:
Also, you don't need to put else { return false; } in there, you can only have a single thing returning from a function. By the way, you don't need if ( $file != "." & !=".." ), you can do this aswell, if ($file==".") continue, which takes out all the periods in there, this can only work in a loop. Also, your files wont be listed, as since you don't have the return $dir_array inside the while loop, plus you need to put it in the if statement if your going to do it with the != operand. |
Quote:
|
Here is where I am now :
PHP Code:
|
Quote:
You need to specify what $_GET['folder'] is, and since $_GET is specifically ONLY used for url vars, you would have to put in a custom url var to show the directory of files. |
| All times are GMT. The time now is 12:52 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0