php添加扩展 在phpinfo能看到该扩展,但在cli用php -m 却看不到,为什么呢

WBOY
Release: 2016-06-23 13:41:04
Original
1247 people have browsed it

php添加扩展 在phpinfo能看到该扩展,但在cli用php -m 却看不到,为什么呢,求指教


回复讨论(解决方案)

这要看你的布局了
一般情况下 cli 使用的 php.ini 和 web 方式的不在一处

你可以用 php --ini 看一下是否是你修改的

我也遇到这个问题,不知道怎么解决

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