For different thread-safe, VC versions of the PHP release, you can PECLGets the binaries to the precompiled binary. Unzip and put the Php_mongo.dll in the PHP extension directory (the default is "ext").
Add the following to the php.ini file:
Extension=php_mongo.dll
Note: add additional dependent DLLs for Windows users
For this extension to take effect, the DLLThe file must be available in the Windows system PATHindicated by the path found below. In my system, I was doing this:
Add the PHP installation directory to the system path, as shown in:
Although it is OK to copy the DLL files from the PHP folder to the Windows system directory, it is not recommended. This extension requires the following files in the path path: Libsasl.dll
restart Apache service. Test whether the configuration was successful
!--? phpphpinfo ();?-->
successfully configured on my computer as shown in:
Copyright notice: This article for Bo Master original article, without Bo Master permission not reproduced.
Above describes the configuration of the PHP and MongoDB databases on Windows, including aspects of the content, you want to be interested in PHP tutorial friends helpful.