Page 1 of 1

Call to undefined function: mysql_pconnect()

Posted: Wed May 07, 2003 10:03 am
by pardos
Error:
Call to undefined function: mysql_pconnect()

Mandrake Linux
PHP 4.2.3
Apache
mySQL 3.23.52

Question how can I find out if php has mySQL addon or is configured correctly?

I ran phpinfo, have no idea what to look for?

The code works on my development system...

Win 2000 pro
Apache
PHP 4.3
mySQL 3.23.54

I think I am missing a hook to mysql in php.
the php.ini has in the extention area
extension = mysql.so

thanks for your help

Posted: Wed May 07, 2003 3:31 pm
by Stoker
could it be that pconnect has been disabled?
Many shared-hosting admins don't like pconnect..

try make a functions something like

Code: Select all

<?php
  function mysql_pconnect ( $host, $user, $pass ) {
     return mysql_connect ($host, $user, $pass);
  }
?>
:idea: