PHP 5X using its own sqlite3 link database, PDO link sqlite (Low cost development) (i)

Source: Internet
Author: User
A program engineer will occasionally encounter when deploying code, there is no database such as MySQL on the server, or the price of the database has to be calculated in addition to the space, when your project is small or not able to buy the database space, you can consider using SQLite.

SQLite is a small, but SQL statement and functionality is inferior to other databases.

Begin:

The general development environment is configured as follows:
1. Download SQLite3.dll
Open the Download Channel link (http://www.sqlite.org/download.html), "Precompiled Binaries for Windows" Download "Sqlitedll-3_6_22.zip (249.72 KiB) ". This is the dynamic link library file under SQLite windows
2. Copy the extracted Sqlite3.dll files to the Xampp\php\ext directory
3. Open the php.ini file to find
Extension=php_pdo.dll
Extension=php_pdo_sqlite.dll
Remove the preceding semicolon and make up a line:
Extension=sqlite3.dll
Where is the php.ini file? Write yourself a phpinfo () and run to find out where the "Configuration File" is. There must be a php.ini file, without anything-dist or something like that, is called php.ini.
4, the database management can download a sqlitemanagerforphp, which is based on the PHP Web management tool, similar to the MySQL phpMyAdmin. Unzip directly to XAMPPX's Htdocs folder. If you do not like the Web version, you can also use the SQLite visual management Tools SQLite Expert (as if the domestic direct URL cannot be opened, want to open it other) official website: http://www.sqliteexpert.com/

The above describes the PHP 5X using its own sqlite3 link database, PDO link sqlite (Low cost development) (a), including aspects of the content, I hope to be interested in PHP tutorial friends helpful.

  • 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.