On Fri, 11 Dec 2009 09:13:33 -0500, Simon Slavin <slav...@bigfraud.org>  
wrote:

> Run the PHP INFO routine:
>
> phpinfo();
>
> and search for the word 'sqlite' in it.  You should fine it listed in  
> the PDO section.  You should also see the following sections:  
> 'pdo_sqlite', 'SQLite' and 'sqlite3'.  If any of those are missing you  
> do not have sqlite enabled properly, possibly because of modules,  
> possibly because of compilation options.

Not exactly true: 'pdo_sqlite' and 'sqlite3' provide two independent  
interfaces to SQLite 3, and 'sqlite' provides an interface to SQLite 2.   
If you're missing -all- of them (or, realistically, only have 'sqlite'),  
then you're in trouble, but any of them missing could simply be a  
configuration choice.

> Alternatively, use the native sqlite commands instead of the PDO driver:
>
> http://php.net/manual/en/book.sqlite.php

For clarity, that's the old SQLite 2 interface---which I suspect you  
didn't intend to recommend, Simon.  The modern non-PDO SQLite 3 interface  
is documented here:

<http://www.php.net/manual/en/book.sqlite3.php>

It is, however, only available by default since PHP 5.3.0.

-- 
J. King
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to