Here is my situation: images are stored outside the root folder. I can access them with an external php file (as it should be), then file_get_contents, then echo, and then img srcit will display perfectly.
I have a thick box installed, and I want this to happen when the user clicks on the image, it will be displayed in a larger size
<a href="img.jpg" class="thickbox"><img src="my_image_processing.php?img=img.jpg" />
I am trying to create a gallery on click. It happens that a thick box appears, but the image does not work. Instead of an image, bar / junk codes appear with black diamonds with a question mark. I assume this is the source code of the image.
How can I output this as an image, not raw code in
<a href> 's
ADDED: I just played a little with him. When I remove the colon class, it actually works a href. It displays the image on the next page. Fortunately, when I attach the thick box classes, it shows the thick box, but it shows the source code
source
share