View Single Post
Old 05-08-2007, 01:08 PM  
SilentSpic
Registered User
 
Join Date: Nov 2005
Posts: 24
Addhandler Images into php or html

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.
__________________
http://www.silentpix.com
SilentSpic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote