I'm using XAMPP, and I've added extension and php_mongo.dll in the php.ini and \ext directories.
Successfully installed Mongo, boot is successful, but when writing PHP program in Zend, $mongodb =new Mongo () It will display the problem class Mongo not found, I thought it was my php_mongo_drive did not install successfully, But I do not know how to solve, online to find a lot of tutorials, according to do or not
In addition, I used the MySQL database, and then changed the original program to the MongoDB database connection
Reply to discussion (solution)
See if your version of Mongo.dll is consistent with your PHP version
Mongo_dll Extended Address
See if your version of Mongo.dll is consistent with your PHP version
Mongo_dll Extended Address
I use PHP is 5.2.0, php_mongo.dll version is Php_mongo-1.5.4-5.2-vc9.dll this, can you?
See if your version of Mongo.dll is consistent with your PHP version
Mongo_dll Extended Address
Wrong, PHP version is 5.5.9
If you're not writing in Zend, can you?
If you're not writing in Zend, can you?
Well, I haven't tried it, you mean write it in Notepad?
If you're not writing in Zend, can you?
But I'm going to use Zend Framwork, and I'm using the MVC pattern, there's no frame in Notepad.
Isn't it just that you write a few words to prove that you can work?
Is that so hard?
Print out the Phpinfo information to see if the MongoDB class library is loaded in
Print out the Phpinfo information to see if the MongoDB class library is loaded in
No....
I did install MongoDB and can start at a command prompt, but driver I'm not sure ...
No, there is no installation success!
No, there is no installation success!
I have done the following work, you can help me to see what is wrong with me? Thank you so much
1. Download MongoDB 2.6.3 version, the installation is successful, you can start the operation at the command prompt
2. Download Php_mongo.dll 1.5.4-vc9 version, copy to \xmapp\php\ext, modify php.ini file, add extension = Php_mongo.dll
3. Download the Mongo-php-driver-master file on GitHub and copy it to Mongodb\bin
4. Then I am in the PHP program, use Mongo; $m = new Mongo ();
The error is class Mongo not found
I'm in trouble with you!
No, there is no installation success!
I have done the following work, you can help me to see what is wrong with me? Thank you so much
1. Download MongoDB 2.6.3 version, the installation is successful, you can start the operation at the command prompt
2. Download Php_mongo.dll 1.5.4-vc9 version, copy to \xmapp\php\ext, modify php.ini file, add extension = Php_mongo.dll
3. Download the Mongo-php-driver-master file on GitHub and copy it to Mongodb\bin
4. Then I am in the PHP program, use Mongo; $m = new Mongo ();
The error is class Mongo not found
I'm in trouble with you!
http://www.fkblog.org/blog569