Why do I always prompt Calltoundefinedfunctionsqlite_open () when I connect to sqlite using PHP ()

Source: Internet
Author: User
Why do I always prompt Calltoundefinedfunctionsqlite_open () environment win7 + iis when I connect to sqlite using PHP?
In php. ini, open extension = php_pdo_sqlite.dll and extension = php_sqlite3.dll, and restart IIS.
Write $ db = sqlite_open ("test. db") in PHP; always prompt Call to undefined function sqlite_open () why?


Reply to discussion (solution)

Php_sqlite3. only the sqlite3 class is provided, and no discrete functions are provided.
Since you have enabled php_pdo_sqlite, you can use pdo to operate SQLite.

Php_sqlite3. only the sqlite3 class is provided, and no discrete functions are provided.
Since you have enabled php_pdo_sqlite, you can use pdo to operate SQLite.


I finally figured out that I read sqlite2 and previous versions online. the manuals on the official website specifically separated sqlite3 from sqlite.
Thank you, but I still don't quite understand what PDO is.

PDO is a major new feature of PHP 5, because php4/php3 before PHP 5 was a bunch of database extensions to connect to and process various databases, php_mysql.dll, php_pgsql.dll, php_mssql.dll, php_sqlite.dll, and other extensions to connect to MySQL, PostgreSQL, ms SQL Server, and SQLite. Similarly, we must use ADOdb, PEAR: DB, PHPlib :: database abstract classes such as DB are very cumbersome and inefficient to help us. after all, how can we directly use C/C ++ to write php code with a high scaling slope? So, the emergence of PDO is inevitable.

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.