> $dbh = new PDO('sqlite:$db_file');
[8<]
> $dbh = new PDO('sqlite2:$db_file');
But with double-quotes, not single-quotes. ;-)
Ben
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> I was under the impression that sqlite2 was supported widely by PHP,
> but sqlite3 seems only to be enabled on php 5.3.0 by default.
>
> My concern now is actually that users may find that their hosting
> service providers don't provide sqlite3 out of the box.
PDO seems to support both versions:
On Tue, Sep 8, 2009 at 9:41 PM, Paul M Foster wrote:
> On Tue, Sep 08, 2009 at 11:20:01AM +0800, Eric Boo wrote:
>
>> Hi,
>>
>> I'm currently using a text file to store data which the php script
>> will read and write back to. I've a few questions:
>>
>> 1) I'm thinking of using sqlite, but not sur
On Tue, Sep 08, 2009 at 11:20:01AM +0800, Eric Boo wrote:
> Hi,
>
> I'm currently using a text file to store data which the php script
> will read and write back to. I've a few questions:
>
> 1) I'm thinking of using sqlite, but not sure whether this will be
> widely available on most hosts, as
Hi,
I'm currently using a text file to store data which the php script
will read and write back to. I've a few questions:
1) I'm thinking of using sqlite, but not sure whether this will be
widely available on most hosts, as I intend for the php script to be
deployed without needing to much with m
5 matches
Mail list logo