WAMP MongoDB - PHP 扩展 [英] WAMP MongoDB - PHP extension
问题描述
我在 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屋!