Class Mongo not found

Source: Internet
Author: User
Tags install mongodb phpinfo vc9
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
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.