I have installed MongoDB, wamp server and I have added a collection in MongoDB
I then downloaded the php_mongo-1.6.8.zip from S3 -> OK
There are many files in the zip file, but which one is the one I need? (Window 10 64 bit)
I found my php.ini
location from phpinfo()
in C:\wamp\bin\apache\apache2.4.9\bin\php.ini
and I inserted this string in extension=php_mongo.dll
. In c:/wamp/bin/php/php5.5.12/ext/ copy (for test) the php_mongo-1.6.8-5.6-vc11.dll (renamed in php_mongo.dll).
I can restart apache without errors and call mongo.php in my host
echo extension_loaded("mongo") ? "mongo loaded\n" : "mongo not loaded\n";
echo "<br>";
echo extension_loaded("mysql") ? " mysql loaded\n" : " mysql not loaded\n";
This is the print:
mongo not loaded
mysql loaded
Why isn't the mongo driver loading?