: This article describes how to configure php and mongodb databases on Windows. if you are interested in the PHP Tutorial, refer to it. For PHP distributions of different thread security and VC versions, pre-compiled binary files can be obtained from PECL. Decompress the package and put php_cmd.dll in the PHP extension directory ("ext" by default ").
Add the following content to the php. ini file:
extension=php_mongo.dll
Note: add additional dependent DLL for Windows users
To make this extension take effect, DLLThe file must be located in the PATH indicated by PATH in Windows. In my system, I did this:
Add the php installation directory to the system Path, as shown in:
Although you can copy the DLL file from the PHP folder to the Windows directory, we do not recommend that you do this. This extension requires the following files in the PATH: Libsasl. dll
Restart the Apache service. Test whether the configuration is successful.
Successful configuration on my computer is shown in:
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.
The above describes how to configure php and mongodb databases on Windows, including some content. I hope my friends who are interested in PHP tutorials can help me.