【发布时间】:2021-10-22 08:11:04
【问题描述】:
我在我的网站https://www.example.com 的根目录中创建了一个.user.ini,只有一行:
auto_prepend_file = "/path/to/my/website/includes/prepend.php"
一切正常。
我现在正在 https://development.example.com 上设置开发环境,我将所有文件从我的生产站点复制到了开发站点。
有没有办法重写我的 .user.ini 以使用相对路径?像这样的:
auto_prepend_file = doc_root + "/includes/prepend.php"
或许
auto_prepend_file = "includes/prepend.php"
这样我就不必在每次进行生产或开发工作时都更新 .user.ini 文件。
谢谢。
【问题讨论】: