Home › Forums › Back End › PHP Problem – Dynamically loading images into a gallery › Re: PHP Problem – Dynamically loading images into a gallery
February 6, 2013 at 1:28 am
#123533
imprintedimaging
Member
Thanks for responding @traq.
Umm… the first line is a $tempDir allocation, so that should be fine.
I’m guessing it doesn’t succeed, as the array count is always 0. If I change $tempDir to a set path in a static site, the whole thing works fine. I think its the mixing of the template_url and relative path into a variable and then calling that variable that’s causing the issue, but I’m not certain.
Had played around with glob() in the past, but once I got this working with opendir(), I moved on. Might have to go back and revisit.
Any other ideas?