I figured it out, .htaccess:
Code:
AddHandler headered .htm
AddHandler headered .html
Action headered /path/file.php
file.php:
PHP Code:
<?php
echo "whatever you want";
readfile($_SERVER["PATH_TRANSLATED"]);
?>
This works great for html files, but I'm still looking for a similar solution for php files that use include for header, footer, etc.. Any help is appreciated.
