PHP problem, images and such

Soldato
Joined
2 Dec 2005
Posts
5,514
Location
Herts
Hello

I'm making a simple gallery. A folder is checked for all jpg's, an array is made, and the info in this array is printed out in the form of thumbnails. But I'm stuck on the first part. First of all, I can't figure out how the check a different folder for files of .jpg. Rob's sig thingy only applies for the same directory.
$files = glob('{*.jpg}');
Where does the other directory come into this? For example, checking images/.

As soon as this is solved I'll have more problems :)

Edit: apparently $files = glob('images/{*.jpg}'); works. I'm sure there's more to come :)
 
Last edited:
Back
Top Bottom