By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,374 Members | 2,993 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,374 IT Pros & Developers. It's quick & easy.

PHP/SQLite connector PHP5 and SQLite 3

P: 1
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_pdo.dll
extension=php_sqlite.dll

php.ini indiates that the extension_directory 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.
Dec 15 '11 #1
Share this Question
Share on Google+
1 Reply


Dormilich
Expert Mod 5K+
P: 8,639
.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.
Dec 15 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.