在哪里可以找到php-cli的php.ini [英] where can I find the php.ini for php-cli
本文介绍了在哪里可以找到php-cli的php.ini的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
看来php命令行使用的是与主要php解释器不同的php.ini.我正在使用Ubuntu 10.4.我的问题是,在主php.ini中,我为外部库添加了一条额外的路径,但是在cli版本中,此路径不存在,因此出现了路径包含错误.
It appears that the php command line is using a different php.ini from the main php interpreter. I am using Ubuntu 10.4. My problem is that in the main php.ini I have included an extra path for an external library, but in the cli version this is not present, and so I have a path inclusion error.
谢谢
推荐答案
只问PHP:
$ php -i |grep php\.ini
这篇关于在哪里可以找到php-cli的php.ini的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文