AV1611 Posted June 6, 2007 Share Posted June 6, 2007 Running LAMP (FC6, Apache2, MySQL, PHP 5.1.6) Fedora Core 6 has PHP compiled with the --no-sqlite so you have to use extensions. I can't figure out how to get it to work. I have and Sqlite2 database I need to read with PHP. Can anyone help me figure out now to get PHP to work with Sqlite? When I use sqlite_open() I get unknown fuction Thanks Quote Link to comment https://forums.phpfreaks.com/topic/54436-sqlite/ Share on other sites More sharing options...
per1os Posted June 6, 2007 Share Posted June 6, 2007 Did you uncomment the lin in your php.ini that has something like ;extension=php_sqllite.dll (the ; is the comment) and make sure that the php_sqllite.dll (unsure if that is the real name) is in your extension dir, and made sure that you are working with the right php.ini file that is listed in the phpinfo(); information? Quote Link to comment https://forums.phpfreaks.com/topic/54436-sqlite/#findComment-269229 Share on other sites More sharing options...
trq Posted June 6, 2007 Share Posted June 6, 2007 Fedora Core 6 has PHP compiled with the --no-sqlite This is the problem with binary distros. Ive never had to use dynamic extensions as I compile php myself. Can't you simply uncomment extension=php_sqlite.so in the php.ini then restart Apache? Failing that, I'de suggest recompiling php with sqlite support. The engine is budled within php so there are no dependencies required. According to the manual there also seems to be an install method available through PEAR. Quote Link to comment https://forums.phpfreaks.com/topic/54436-sqlite/#findComment-269230 Share on other sites More sharing options...
AV1611 Posted June 6, 2007 Author Share Posted June 6, 2007 I don't really know how to recompile php and get all the extensions right. I know that there is also a difference between sqlite2 and sqlite3, I know 3 uses pdo but 2 doesn't... problem is, that's all I know Quote Link to comment https://forums.phpfreaks.com/topic/54436-sqlite/#findComment-269395 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.