Home >Backend Development >PHP Tutorial >php配置mongo扩展

php配置mongo扩展

WBOY
WBOYOriginal
2016-06-23 14:28:51804browse

php配置mongo扩展

a)      下载php_mongo.dll

官方下载地址:

http://www.php.net/manual/en/mongo.installation.php#mongo.installation.windows

下载时看准文件版本,要和你使用php的版本相同

如果版本使用错了mongo扩展就无法启用,下载后放到php扩展文件夹下

b)     修改php.ini文件

添加extension =php_mongo.dll

c)      重启apache

查看Phpinfo()中mongo扩展存在,配置完成

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
Previous article:安装PHP的步骤Next article:PHP处理文件(转载)