【问题标题】:how to have other ini files for php 5.4 windows [closed]如何为 php 5.4 windows 获取其他 ini 文件 [关闭]
【发布时间】:2012-12-06 12:18:57
【问题描述】:

抱歉,仅此而已

我尝试了很多东西

谢谢

我想将 php.ini 文件拆分成多个 ini 文件 例如 php.ini mysqli.ini

Leran 使用这个 Apache 指令

PHPIniDir

【问题讨论】:

  • 多解释一点.. 不清楚的问题
  • 我可以知道你在做什么

标签: php windows php-ini


【解决方案1】:

根据需要拆分 php.ini,将其保存到某个目录,然后添加到 Apache 配置文件:

SetEnv PHP_INI_SCAN_DIR d:\customdir

然后,Apache 将扫描目录d:\customdir 中的所有ini 文件并使用它们。

或者在您的.htaccess 中尝试php_value include_path "d:\custom"

【讨论】:

  • 读取目录但没有读取ini文件
  • @RamiJamleh 在你身上尝试php_value include_path "d:\custom" .htaccess
猜你喜欢
  • 1970-01-01
  • 2015-01-18
  • 1970-01-01
  • 2015-01-18
  • 2012-09-05
  • 2017-05-04
  • 1970-01-01
  • 2011-10-22
  • 1970-01-01
相关资源
最近更新 更多