Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End PHP Problem – Dynamically loading images into a gallery Re: PHP Problem – Dynamically loading images into a gallery

#123533

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?