doubo1711
doubo1711
2011-01-25 00:37
浏览 59
已采纳

调用未定义的函数sqlite_open

Searched already on many sites with no results. PHP keeps on saying:

Call to undefined function sqlite_open()

If I manually load sqlite (it's already installed with yum install php-pdo) I get

PHP Warning:  Module 'PDO' already loaded in Unknown on line 0

PHP Warning:  Module 'pdo_sqlite' already loaded in Unknown on line 0

PHP Warning:  Module 'sqlite3' already loaded in Unknown on line 0

PHP Fatal error:  Call to undefined function sqlite_open() in /home/kpark/dbconnect.php on line 9
  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • duanqianhuan3994
    duanqianhuan3994 2011-01-25 00:53
    已采纳

    sqlite_open was the function in the sqlite2 extension. What you've installed is probably the sqlite3 module, which requires sqlite3::open() instead.

    But you should not use the native interface either way. Use PDO to open sqlite databases. http://www.php.net/manual/en/ref.pdo-sqlite.php

    点赞 评论

相关推荐