Jump to content

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/54436-sqlite/
Share on other sites

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?

Link to comment
https://forums.phpfreaks.com/topic/54436-sqlite/#findComment-269229
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/54436-sqlite/#findComment-269230
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.