Quote:
Originally Posted by SilentSpic
I know this is possible but cannot find it anywhere how to fix this. I would like to open all of my images into a php or html file using htaccess.
Following line were placed in htaccess:
AddHandler headered .jpg
Action headered /header/header.php
Then in the header.php, I've placed:
<?php
$header = "header.html";
$footer = "footer.html";
$image = $_SERVER["PATH_TRANSLATED"];
readfile($header);
readfile($image);
readfile($footer);
?>
But the above is opening images as a file. Please Help. Thanks.
|
You are going to have to get the image part into an img tag to get the browser to see that it is an image.
My brain is full right this second but let me think on it for a couple.
.