Re: DB parseDSN and sqlite "mode"
| From: | Mika Tuupola | Date: | Mon, 05 Jan 2004 08:40:52 +0000 |
| Subject: | Re: DB parseDSN and sqlite "mode" | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-24762@lists.php.net to get a copy of this message | ||
On Sun, 4 Jan 2004, Daniel Convissor wrote:
> The SQLite class has an DSN option for "mode" which is used to chmod a new
> database. The parseDSN method doesn't have a process for this yet nor
> does the documentation explain the format for this parameter. So, it's
> time to create it.
Yes there is. Example usage is in source of the sqlite driver
for example:
$dsn = 'sqlite://dummy:@localhost/' . getcwd() . '/test.db?mode=0644';
--
Mika Tuupola http://www.appelsiini.net/~tuupola/