找不到php.ini

WBOY
WBOYOriginal
2016-06-23 14:05:39794browse

phpinfo输出php.ini的路径是C:\Windows
但这个目录下面却找不到php.ini,隐藏文件都显示了,搜索整个C盘都找不到,这是为何?


回复讨论(解决方案)

Loaded Configuration File   这个是在c盘?或者看哈环境变量

Loaded Configuration File   这个是在c盘?或者看哈环境变量

Configuration File (php.ini) Path C:\Windows
Loaded Configuration File (none)

Loaded Configuration File   这个是在c盘?或者看哈环境变量

我找到解决办法了:

在apache的配置文件里面加上这行:
PHPIniDir "C:\Windows"

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn