Hmmm
Well, I have such a file that I created, because with out it, I would get an
error that reads:
SQLSTATE[HY000] [14] unable to open database file
So I created a junk.sqlite file and I got
SQLSTATE[HY000] [10] disk I/O error
so I changed permissions using chmod 777 junk.sqlite and that got rid of
the error, and I continued on. After running the present program (which
gives the error on fetchAll) the junk.sqlite file contains a single
character - "S". This also happens if junk.sqlite is in the same directory
as the php file.
Frank
Simon Slavin-3 wrote:
>
>
> On 13 Dec 2009, at 5:45pm, FrankLane wrote:
>
>> Hi Simon - I don't know how to access the database created by my php
>> program,
>
> The database is whatever file you specified when you created the database:
>
> try { $dbHandle = new PDO('sqlite:'."/Users/me/junk.sqlite"); }
>
> So your database file is the file
>
> /Users/me/junk.sqlite
>
> But are you certain that this file exists ? Please check to see it exists
> and use the sqlite3 commend-line tool to see whether the right data exists
> in it.
>
> Simon.
> _______________________________________________
> sqlite-users mailing list
> [email protected]
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>
>
--
View this message in context:
http://old.nabble.com/Sqlite-and-php-tp26754013p26768798.html
Sent from the SQLite mailing list archive at Nabble.com.
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users