Using MongoDB in Yii under Windows

Source: Internet
Author: User
Tags php compiler yii

1. Compile or download the corresponding DLL dynamic link library extension file: Dot me, do not know how to compile DLL extension under Windows, dot I

2. Locate the Web server software, such as Apache,nginx, etc. webserver processing the browser request when the PHP compiler loads the php.ini configuration file, and open, find the "extension=" string location, add "extension=php _xxx.dll "

3. Restart Webserver

4. Feel free to test the code in the Webserver Web site root directory, such as the WWW directory to establish testmongo.php, the test code is as follows:

1 <? PHP 2 Var_dump (class_exists(' MONGO ')); 3 ?>

5. Enter the corresponding path information, you can get the corresponding extension load success or failure information

6. Download and use the well-packaged MongoDB convenience class library, click I download

7.< to Be continued >

Using MongoDB in Yii under Windows

Related Article

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.