Home >Backend Development >PHP Tutorial >不能运行phpinfo怎么看 当前项目用的是哪个php.ini

不能运行phpinfo怎么看 当前项目用的是哪个php.ini

WBOY
WBOYOriginal
2016-06-23 13:48:221267browse

不能运行phpinfo怎么看(因为不是网页 是php-cli)  怎么看当前项目用的是哪个php.ini  


回复讨论(解决方案)

php -r 'phpinfo();'  

php --ini 会有类似这样的输出
Configuration File (php.ini) Path: C:\WINDOWS
Loaded Configuration File:         D:\AMP\php54\php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed:      (none)

应该很明确了吧

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