Home > Backend Development > PHP Tutorial > php-cli环境下扩展目录

php-cli环境下扩展目录

WBOY
Release: 2016-06-06 20:25:20
Original
1735 people have browsed it

RT, 想问一下,php-cli环境下,PHP的扩展目录是哪个?

如下代码:

<code>var_dump(extension_loaded('pdo'));</code>
Copy after login
Copy after login

网页执行为 true ,但是php执行为 false.

回复内容:

RT, 想问一下,php-cli环境下,PHP的扩展目录是哪个?

如下代码:

<code>var_dump(extension_loaded('pdo'));</code>
Copy after login
Copy after login

网页执行为 true ,但是php执行为 false.

什么系统?linux里etc下面php目录下一般有cli,apache2,fastcgi几个目录。每个目录下都有相应的php.ini配置文件。

有可能网页和命令行执行用的不是同一个php版本,配置文件也不同,看下Apache或nginx的用的哪个目录下的php

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