Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: Asking for specific help on using Berkeley DB style databases


Message #1 by "Ruben" <bphpdev@h...> on Wed, 30 May 2001 20:20:24
Don't necessarily trust phpinfo.  I recently had to setup php and a mysql
server, and even though it had mysql support, phpinfo said it is setup with
the parameters --without-mysql

But I do agree with you.  99% of the time the undefined function messages in
relation to database connectivity is because support for that db was not
included.

As far as help, I can not... unless you have a compiler for windows.  Other
than that, I do not know how the win version handles the binaries and
add-ins.

Adam Lang
Systems Engineer
Rutgers Casualty Insurance Company
http://www.rutgersinsurance.com
----- Original Message -----
From: "LUIS M MORALES" <luismorales@j...>
To: "professional php" <pro_php@p...>
Sent: Wednesday, May 30, 2001 6:58 PM
Subject: [pro_php] Re: Asking for specific help on using Berkeley DB style
databases


> Dear Ruben,
>
> The problem may be that you not have db Berkley support in your system.
>
> Make a litle scprit <? phpinfo() ?> and look the DB support parameters.
> If you
> not have DB Berkley  api in your system, them you need re-compile php
> and
> activate DB Berkley support.
>
> Best regart
>
> Ruben wrote:
>
> > Hello:
> > I´m asking for help here because I´ve been posted a message in other
lists
> > of this PHP progammer´s resource, but I´m still in some doubts about why
I
> > can not utilize those database (dbm-style) abstraction layer functions,
> > like dba_open(), just from a simple script of PHP. When I try on with a
> > script like the following:
> >
> > <?php
> >
> > $db = dba_open("databse.db", "c", "db2");
> >
> >  if(!$db) {
> >   echo "Database open failed.";
> >  }
> >
> > ?>
> >
> > I get an error message telling me that the function dba_open() is
> > undefined.
> >
> > I´m working with PHP4 (ver. 4.0.4), Win32 version installed on IIS 5.0
on
> > MS Windows 2000 Server and it works fine. If I need to get the db2
library
> > to compile the whole PHP, or a Win32 binary version of PHP4 that have
been
> > compiled with the appropiate libraries to allow access to this kind of
non-
> > relational databases, I would need someone give me the directions to
find
> > the files or any solution.
> >
> > Thanks in advance,
> > Rub.
> > 

  Return to Index