For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > June 2006 > question about the boundled sqlite on PHP5.1









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author question about the boundled sqlite on PHP5.1
Jack

2006-05-25, 3:58 am

HI, all

I'm trying to use sqlite3. How do I set the php.ini to enable it? The
following is my setting , but it won't work at all.

extension=php_pdo.dll
extension=php_pdo_pgsql.dll

And if I want to use the latest version of sqlite , how can I do? THank you
in advance!


Jack


Jack

2006-05-25, 3:58 am

Sorry, it's a mistyping. My php.ini setting is as following
---
extension=php_pdo.dll
extension=php_pdo_sqlite.dll
---
And it won't work at all. The error message is "missing extension native".
My test.php (php5.1.4) is as following:
----
require ('adodb/adodb-errorhandler.inc.php');
require ('adodb/adodb.inc.php');
$path = urlencode('d:\temp\cntdata.db3');
$dsn = "sqlite://$path/?persist";
$conn = ADONewConnection($dsn);
........
----
cntdata.db3 is a sqlite3 database.

Jack



"Jack" <jack2005@tpg.com.au> wrote in message
news:44753f93$1@dnews.tpgi.com.au...
> HI, all
>
> I'm trying to use sqlite3. How do I set the php.ini to enable it? The
> following is my setting , but it won't work at all.
>
> extension=php_pdo.dll
> extension=php_pdo_pgsql.dll
>
> And if I want to use the latest version of sqlite , how can I do? THank
> you in advance!
>
>
> Jack
>



Ryan Lange

2006-06-17, 8:04 am

Jack wrote:
> HI, all
>
> I'm trying to use sqlite3. How do I set the php.ini to enable it? The
> following is my setting , but it won't work at all.
>
> extension=php_pdo.dll
> extension=php_pdo_pgsql.dll
>
> And if I want to use the latest version of sqlite , how can I do? THank you
> in advance!
>
>
> Jack


I think you also need to uncomment the following line:

;extension=php_sqlite.dll

Ryan
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com