mysql_pconnect() not in the version of php under ydl 2.2?

Keary Suska yellowdog-general@lists.terrasoftsolutions.com
Fri Apr 26 16:14:01 2002


on 4/26/02 12:54 PM, quangdog@mac.com purportedly said:

> I recently installed a php web application that I wrote on another
> system that also used php4.  I get this error:
> 
> 
> Fatal error: Call to undefined function: mysql_pconnect() in
> /var/www/html/vudu/lib/DBLink.php on line 28
> 
> 
> Does this just mean that I need to rip out the version of php that ydl
> 2.2 ships with and recompile it myself?
> 
> I do have the php-mysql package installed.

I don't use the PHP or Apache RPMs, but are you using the module or CGI
version? This function is only available in the module version.

If you are using the module version, it seems most likely that PHP doesn't
know it has MySQL support. One possibility is that the PHP .so loads MySQL
support as a dl (.so), and can't find it, or the MySQL loadables can't be
found. Make sure that ld.so.conf knows about the MySQL library locations, if
they aren't in a standard place, which they most often aren't. Do you get
any messages in your Apache error log?

Keary Suska
Esoteritech, Inc.
"Leveraging Open Source for a better Internet"