I've spent a day and a half attempting to read images from a folder and then printing them to a webpage. I have used code provided at a few different reputable websites. They have not worked.

I've used glob, opendir, and scandir to read the folders.

What I am seeing:

1. The user drops through the loop once.
2. The variable used for the image does not print a value.

My belief is that the code is not in any of these instances seeing an image. That has led me to think that I am pointing to the wrong folder. This is a WordPress install located in a subdirectory: http://domainname/subdirectory/wordp...ontent/uploads. The images are in the uploads folder.

The directory path I have used is $dir = /trophy/wp-content/uploads.

Any and all help is appreciated.