I asked this question a while ago and got an answer that I thought would work but I'm still having an issue. Maybe it's something I'm doing wrong but I still don't have this right.
I want to restrict access to an entire directory. This directory has images and pdf files in it. I need to create a link to the pdf documents and embed in an anchor tag, the images. I was told to use header for this. Using header immediately outputs the content which works great for the pdf document but I have to embed 3 images from the same directory and this doesn't work because header outputs the image before the html and that's correct behavior.
I need a way to assign the image to a variable so that I can embed it where I need it after the html has been outputted. Any ideas?
Here is a link to my last question. How to restrict viewing files within a directory