

$obj = array( “title” => “RunSafe”, “reviews” => 100) ġ) I tried to install Mongo 2.2 on my Windows XP box and got a DLL error. select a collection (this is mongo version of a table in a releational database If all went well you should have a mongo section in your phpinfo() section.Ĭreate a PHP file that creates an instance of Mongo in order to see if it’s done right.

Then I rename the dll to php_mongo.dllĪdd the line below to the php.ini file. So I copy the file php_mongo-1.3. to the extensions directory. I’m going to pick thread-safe because I think this is the default value for XAMPP. My options are either not thread-safe (nts) or thread-safe. Since I’m running a 32-bit version of windows this narrows it down even more. In my case this is PHP 5.4.4, running in 32-bit mode, with VC9 for the compiler, and running in thread-safe mode. Click on phpinfo() on the left and you can see what type of installation you have. To see which version of PHP you are running, go to the XAMPP Control Panel and click Apache -> Admin. This php_mongo-1.3.1.zip package contains several different PHP versions of the DLL. I grabbed the latest release, which at the time of this writing is php_mongo-1.3.1.zip. The repository for MongoDB PHP drivers is located at: Here is the main link for mongo installation.Ģ) Download the correct MongoDB PHP driver Otherwise use the latest stable production build. If you are running Windows XP, use 2.0.X. In order to download and install MongoDB, first download a package from
