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.
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
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.
Where does the other directory come into this? For example, checking images/.$files = glob('{*.jpg}');
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: