Re: Re: Call to undefined function: mysql_connect()

From: Date: Wed, 14 May 2003 13:57:15 +0000
Subject: Re: Re: Call to undefined function: mysql_connect()
References: 1 2  Groups: php.install 
Request: Send a blank email to php-install+get-10890@lists.php.net to get a copy of this message
I don't know what postnuke is, but have you tried accessing the database just from a simple php script? Have you got the right permissions in that directory? Does it rely on global variables and you have them turned off? Just a guess... It looks like you built it correctly... did you use every option? :P Perhaps you are having some issues with the function mysql_connect()? Could you replace it with mysql_pconnect or something? Have a look at some of the issues here: http://www.php.net/manual/en/function.mysql-connect.php Number one was: mysql_connect jlambert at lambert-comm dot net 18-Aug-2000 11:24 With PHP Version 4.0.1pl2 if you have sql.safe_mode set to on, you will not be able to declare a hostname, username or password. Your username is set to the current user id of the PHP engine. Good luck... Dan. > Greetings. > > > Since I got no answer from my previous post, maybe I can rephrase it > differently. > > When performing phpinfo, what do I need to enable to get the mysql > section showing up? > > > Sincerely, > Hans Deragon > -- > Deragon Informatique inc. Open source: > http://www.deragon.biz > http://swtmvcwrapper.sourceforge.net mailto://hans@deragon.biz > http://autopoweroff.sourceforge.net > > Hans Deragon wrote: >> Greetings. >> >> >> Ever since I upgrade to RH 9.0, I get the following error: >> >> Fatal error: Call to undefined function: mysql_connect() in >> /perm/web/postnuke-phoenix-0.7.2.3/html/pnadodb/drivers/adodb-mysql.inc.php >> on >> line 170 >> >> You can verify this yourself by clicking at: >> >> http://site.deragon.biz:18080/postnuke >> >> I cannot figure out what the problem is. I have opened a bug report at >> RedHat: >> >> >> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=88656 >> >> There you will find that I have tried and reported much information, >> including >> content of configuration files and output of php phpinfo(); Everything >> on my >> system almost seams fine. php is there and seams to have been compiled >> with mysql support. I say almost, because I found a difference >> between my system >> and someone's else. >> >> Calling phpinfo on my server shows some mysql references, but no mysql >> section >> per say. See: >> >> http://site.deragon.biz:18080/phpinfo.php >> >> On someone else's website, his phpinfo showed a distinct mysql >> section. Why >> is that I do not get it? >> >> I only use rpms provided by Red Hat, for php, and from MySQL AB for >> mysql. >> >> >> Sincerely, >> Hans Deragon > > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.install (#10890) next »