auto_prepend_file , auto_append_file

:: .htaccess

php_value auto_prepend_file "/[doc_root]/[path]/head.php"
php_value auto_append_file "/[doc_root]/[path]/foot.php"

::test.php

::head.php

::foot.php

::result
HEAD HERE
It works
FOOT HERE

Advertisements