Re: DB2 (fwd)

From: Date: Tue, 27 Jun 2000 16:56:58 +0000
Subject: Re: DB2 (fwd)
Groups: php.dev 
Request: Send a blank email to php-dev+get-22504@lists.php.net to get a copy of this message
Any reasons why I shouldn't add one more argument to dba_[p]open() specifying what type of db to create? Or, better said, after looking at the sources in ext/dba, just make some of the handlers use one more argument that gets passed to them? -- Jouni ---------- Forwarded message ---------- Date: Tue, 27 Jun 2000 13:13:24 -0300 From: Nelio Alves Pereira Filho <nelio@ifx.com.br> To: Jouni Ahto <jah@php.net> Subject: Re: [PHP-DB] DB2 Don't you know any other way to use php to create db file on the fly as my wish? And about apache, can I use a btree with UserDBFile ?? Thanks for the help Nelio Jouni Ahto wrote: > 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

« previous php.dev (#22504) next »