Addhandler Images into php or html
<hr style="color: black;" size="1"> <!-- / icon and title --> <!-- message --> 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.
<!-- / message --><!-- sig --> __________________
<hr style="color: black;" size="1"> <!-- / icon and title --> <!-- message --> 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.
<!-- / message --><!-- sig --> __________________
Comment