Forum Moderators: coopster
<FilesMatch "\.(html?)$">
php_value auto_append_file "/server/path/www_root/file.php"
</FilesMatch> (and another command to make the Apache server parse .htm files for php)
But now I am on a host where the php_value command is not recognised.
Is there another way of getting my php code in file.php added to every page? I want to avoid adding an include command to every file. I realise this may be a question for the Apache forum, but I suspect that asking php users directly here may be just as productive!
Good luck!
Dave
This is true, however, not for auto_prepend_file because it is PHP_INI_PERDIR, unless you are using PHP 4.2.3 in which case this is possible. Although I wouldn't see why, because you are better off just including the file in each page then.