PHP/SQLite connector PHP5 and SQLite 3

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RichBE4
    New Member
    • Dec 2011
    • 1

    PHP/SQLite connector PHP5 and SQLite 3

    I am trying to connect to a SQLite 3.3.6-5 database using PHP 5.1.6. I am running Apache 2 on a Linux server and I get the error message that the Class PDO was not found. phpinfo says that the php.ini file is located in /etc and I have edited it to add the following lines:

    extension=php_p do.dll
    extension=php_s qlite.dll

    php.ini indiates that the extension_direc tory is /usr/lib64/php/modules but the only entry in that directory is dbase.so. I added dbase.so to my list of extensions, restarted httpd but still get the same error.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    .dll files are for windows only, pretty much useless in Linux. you'll need the .so modules. depending on where you get the PHP source from (php.net download, linux repository) either compile from a version including PDO or add (and recompile) the PDO extension.

    Comment

    Working...