Reputation: 964
How i can open a database using this line:
$db = new PDO('sqlite:mydb.sqlite');
if my db not in this directory?
Upvotes: 4
Views: 2627
Reputation: 798606
Use the same scheme, but put the full path.
sqlite:/path/to/db.sqlite
Upvotes: 10