怎么才能知道当前项目是否安装的memcache

WBOY
Release: 2016-06-23 13:48:23
Original
784 people have browsed it

怎么才能知道当前项目是否安装的memcache    

我就知道当前项目所加载的php.ini去看有没有
extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/"
 extension="memcache.so"

还有 /usr/local/php/bin/php -m | grep memcache  但问题出现了  怎么知道php.ini 是和  /usr/local/php/bin/php对应的  因为我项目比较乱 有2个php.ini 有几个php文件夹 我不清除 反正不止装lnmp1个环境


回复讨论(解决方案)

phpinfo();
看看是否有memcache扩展

phpinfo() ctrl+f memcache

phpinfo() ctrl+f memcache

 我晕我说的不是网页。。php-cli

命令行下 php -m 看看有没有 memcache 
或运行 class_exists('memcache ')文件

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