如何使用.htaccess包含php文件?我在Google上搜索了,但找不到好的教程或代码。
以下是一个php包含代码:
以下是一个php包含代码:
<?php require('footer.php'); ?>
php_value auto_prepend_file "/dir/path/utilities.php"
这段代码是将文件追加到页面底部
php_value auto_append_file "/dir/path/templates/footer.php"
php_value auto_append_file "footer.php"
这将会在每个PHP脚本之后包含footer.php,我想这正是你想要的?还有auto_prepend_file,它会在每个请求之前包含指定的脚本。