【问题标题】:Force include in php.ini?强制包含在 php.ini 中?
【发布时间】:2013-01-09 08:10:24
【问题描述】:

在运行任何其他文件之前,我可以在包含 php 文件的 php.ini 中更改什么吗?相当于在每个文件前添加 "require('somefile.php');"

【问题讨论】:

  • auto_prepend_file

标签: php include require


【解决方案1】:

【讨论】:

  • 致我的反对者,你能澄清一下我的回答有什么问题吗?
【解决方案2】:

在 php.ini 中搜索 auto_prepend_file = [path/to/file]。将[path/to/file] 替换为您的文件

【讨论】:

  • 致我的反对者,你能澄清一下我的回答有什么问题吗?
猜你喜欢
  • 2014-05-15
  • 2012-03-09
  • 2012-03-10
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2010-11-26
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多