[NTLUG:Discuss] If the php3 list fails to answer a question then who do I ask????
Matt Midboe
matt at csbgroup.org
Thu Feb 3 17:17:22 CST 2000
KungFusion wrote:
>
> I have php installed on both my Linux Box Redhat 6.0 and an WinNT4 Server.
> On both boxes I am having problems with the Database(DBM-style) Functions. I
> ran phpinfo and it sees the extensions. I don't "need" to use them, I was
> just running through the tutorials and I ran into this problem. I am hoping
> it is not a foreshadowing of problems I am going to run into.
> I get this everytime I run
> $db = dba_open($dbpath, "r", $dbtype);
>
> Fatal error: Call to unsupported or undefined function dba_open() in
> f:\htdocs/xnet/webmail/index.php3 on line 201
What is $dbtype set to? Make sure that $dbtype is actually set to a database
type that you have libraries for on your system. Also that library has to be
linked into apache properly in order for php to access it. Depending on how you
compiled apache you can check to see what libraries are linked to the web server
by running 'ldd apache' or 'ldd httpd' or whatever the program is named. You
should see something like libdb.so.x or libgdbm.so.x in that list somewhere. If
you don't see that you need to rebuild apache so it has the right database
library linked in.
php might have missed the db support somehow, can you copy in the first 10 lines
or so from your config.status since that will show us what config options where
turned on.
If you are just getting into the server side web development stuff I highly
recommend Java servlets. The Apache JServ, Jakarta and Cocoon stuff is very very
cool. You can read up on them at http://java.apache.org/ and
http://xml.apache.org/
Matt
matt at snsnet.net
More information about the Discuss
mailing list