<[EMAIL PROTECTED]> wrote :

> Hello All,
> 
> I am having a hard time getting sqlite to work with PHP.
> 
> I have installed the RPM from the web site and can compile a test C
> program that works no problem.
> 
> But can't get it to work w/ PHP.
> 
> I have extension = extension=libsqlite.so in my php.ini file. But when I
> do a php -v from the command line it says it can't locate the
> libsqlite.so file.
> 
> Also when I look I do have libsqlite.so in my /usr/lib/.
> 
> Also if I run pear install sqlite, I get "No releases found for package
> 'sqlite'". Which brings up the a question in addition to why is the pear
> installer not working?, of do I need to run that being that I installed
> the RPM from the sqlite.org web site?
> 
> I am running 4.3.3 of PHP.

This is a php related question, you might get more comments on the PECL
mailing list.

Anyway, here is what you can do:

# pear download http://pecl.php.net/get/SQLite-1.0.tgz
# pear install SQLite-1.0.tgz

Then, in your php scripts, use :

if (!extension_loaded('sqlite')) {
    dl('sqlite.so');
}

unless, you load it in your php.ini file by default.

HTH

Bertrand Mansion
Mamasam


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to