Re: DB2
| From: | Jouni Ahto | Date: | Mon, 26 Jun 2000 21:36:23 +0000 |
| Subject: | Re: DB2 | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-643@lists.php.net to get a copy of this message | ||
On Mon, 26 Jun 2000, Nelio Alves Pereira Filho wrote:
>
> Hi ...
>
> I'm having a problem with dba and apache auth_db module.
>
> I wrote a php script that inserts users in a db2 file. Then, I tried to
> authenticate them to access certain page with this table, but I got
> erros, and the message ' could not open db auth file: /tmp/users.db' on
> apache error log.
>
> After some investigation, I found that dba_create was creating a btree,
> and apache aparently accepts only hash files!
>
> How can I open a hash file or making apache to use berkeley btree's ????
> This si causing a lot of trouble to me...
Easiest would be if you can create the db file beforehand with some other
utility. If you dba_open() an existing db file, it recognizes whether it
is btree or hash format, but if you create it, the format is always btree.
-- Jouni Ahto