Try using:
extension=php_mongodb.dll
instead and restarting the xammp server for php
also download the correct .dll for your version of php
you can check your version of php with index.php and inside adding
<?php
phpinfo();
>
Скомпилированные модули для каждой версии доступны на сайте » PECL для всех комбинаций версий, потокобезопасности и библиотек VC. Разархивируйте загруженный модуль и скопируйте php_mongo.dll в директорию с модулями PHP (по умолчанию "ext").
Добавьте следующую строку в php.ini:
extension=php_mongo.dll
Замечание: Дополнительные зависимости DLL для пользователей Windows
Для работы этого модуля системной переменной Windows PATHдолжны быть доступны DLL-файлы. Чтобы узнать как этого достичь, обратитесь к разделу FAQ "Как добавить мою директорию с PHP в переменную Windows PATH". Хотя копирование DLL-файлов из директории PHP в системную папку Windows также решает проблему (потому что системная директория по умолчанию находится в переменной PATH), это не рекомендуется. Этому модулю требуются следующие файлы в переменной PATH: libsasl.dll
Try using:
extension=php_mongodb.dll
instead and restarting the xammp server for php
also download the correct .dll for your version of php
you can check your version of php with index.php and inside adding
<?php
phpinfo();
>
With the newer version of MongoDB, this should be...
extension=php_mongodb.dll
(the filename of the latest stable release at PECL)
Official MongoDB library are available at GitHub as well as its documentation.
Precompiled binaries are also available at GitHub for the legacy and the newer version.