PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
MDB2/SQLite connection error

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Database
View previous topic :: View next topic  
Author Message
at.splat



Joined: 01 Sep 2008
Posts: 1

PostPosted: Mon Sep 01, 2008 9:04 pm    Post subject: MDB2/SQLite connection error Reply with quote

I am trying to connect to a SQLite (v.2) database file using the following:

Code:
$_Db =& MDB2::factory('sqlite:///users/home/.../db/sqlite/users.sqlite?mode=0666');


I get the following error when I try to execute a query:

Quote:
Warning: touch() [function.touch]: Unable to create file users/home/.../db/sqlite/users.sqlite because No such file or directory in /usr/local/lib/php/MDB2/Driver/sqlite.php on line 364


File permissions on users.sqlite and its parent directory are set to 0666.

What is causing touch() to error out? Am I using a properly formatted DSN (except '...', of course)?

Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Database All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement