Click to See Complete Forum and Search --> : [RESOLVED] mysql_pconnect() doesn't work after upgrade


nhero
07-14-2006, 06:48 PM
I recently upgraded from php 4.4 to php 5.1.4. After doing so I receive the following error:

Call to undefined function mysql_pconnect()

This function was working fine until the upgrade.

Copernicus
07-14-2006, 08:58 PM
Well, I am using PHP 5.1.4 as well, I use mysql_pconnect in all my connect files and it works perfectly. So it is definitely not PHP 5.1.4's fault.

Houdini
07-14-2006, 09:23 PM
That is because by default PHP 5 uses mysqli and turns off mysql support. So look at your php.ini and uncomment the mysql.dll

MarkR
07-15-2006, 05:08 AM
PHP does not have mysqli or mysql by default, they both have to be specifically enabled when it's built.

Does your build not have them already installed? Did you compile it yourself?

Mark

nhero
07-17-2006, 11:27 AM
I downloaded the 5.1.4 installer for windows from php.net and selected standard install.

nhero
07-17-2006, 12:42 PM
I uncommented the mysql.dll and this did the trick

Houdini
07-17-2006, 10:12 PM
Well if you don't mind then click the resolved available under thread tools.