Home > Backend Development > PHP Tutorial > 找不到php.ini

找不到php.ini

WBOY
Release: 2016-06-23 14:05:39
Original
806 people have browsed it

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"

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template