note 42793 added to function.dba-open
| From: | flowerpots at yahoo dot com | Date: | Sat, 29 May 2004 15:50:22 +0000 |
| Subject: | note 42793 added to function.dba-open | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-70279@lists.php.net to get a copy of this message | ||
On PHP 4.3.2 (linux), dba_open fails to create file with "c" flag using db4. You'll
get a load driver failure.
You can use the "w" and "n" flags to create if not exists instead:
if (! $DBH = dba_open("/tmp/file.db", "w", "db4"))
$DBH = dba_open("/tmp/file.db", "n", "db4");
---------------
http;//www.jitbot.com
http://web.jitbot.com/web+hosting
http://web.jitbot.com/flowers
http://web.jitbot.com/dvd
----
Manual Page -- http://www.php.net/manual/en/function.dba-open.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+42793
Delete -- http://master.php.net/manage/user-notes.php?action=delete+42793&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+42793&report=yes
Search -- http://master.php.net/manage/user-notes.php