WAMP MongoDB - PHP 扩展 [英] WAMP MongoDB - PHP extension

查看:72
本文介绍了WAMP MongoDB - PHP 扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 WAMP SERVER 中将 MongoDB 扩展安装到 PHP 时遇到问题.

我得到的错误显示在照片

解决方案

对于最新版本,我们也要注意 dll 文件的线程安全版本.

您可以从此链接下载最新的 dll.

在此链接中,您有 .dll 文件的线程安全和非线程安全版本.

如果您的 PHP 安装目录中有 php7ts.dll 或 ts.dll 文件,您需要下载该线程安全的 dll 文件.

下载后你可以将dll文件添加到\wamp\bin\php\php{version}\ext目录并在php.ini文件中调用

extension=php_mongodb.dll

I have a problem with installation of MongoDB extension to PHP in WAMP SERVER.

The error that I obtain is show in photo

解决方案

For the latest versions, we have to be careful about thread-safe version of the dll file too.

You can download latest dll from this link. https://pecl.php.net/package/mongodb

And in this link, you have thread-safe and and non-thread-safe versions of .dll file.

if you have php7ts.dll or ts.dll file in your PHP installed directory you need to download that thread-safe dll file.

And after download you can add dll file to \wamp\bin\php\php{version}\ext directory and call inside php.ini file

extension=php_mongodb.dll

这篇关于WAMP MongoDB - PHP 扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆