RE: [PEAR-DEV] PEAR:DB wrapper around SQLite
| From: | Alan Richmond | Date: | Sun, 25 May 2003 17:39:45 +0000 |
| Subject: | RE: [PEAR-DEV] PEAR:DB wrapper around SQLite | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-16678@lists.php.net to get a copy of this message | ||
] so, i just would like to know, if anyone has an idea, how the pear:db dsn
] could be hacked or configured to take files as arguments;
Urs,
For the DB and MDB QuerySim drivers, I used the database name for the file
name. So:
To access an external file use the following syntax:
querysim:///filename
^^^note: *3* forward slashes before file path!
These will also work:
querysim:///../../../webserver.log
querysim:///c:/netlogs/webserver.log
See DB QuerySim here:
http://bombusbee.com/downloads.byDate.htm#id18
Using external files with DB QuerySim:
http://www.databasejournal.com/features/php/article.php/10898_1470251_6
And MDB QuerySim here:
http://pear.php.net/package-info.php?package=MDB
-Alan