View Single Post
Old 05-08-2007, 01:51 PM  
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,127
Quote:
Originally Posted by SilentSpic View Post
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.

.
__________________
All cookies cleared!
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote