Page 1 of 1

undefined function mysql_pconnect()

Posted: Wed Nov 10, 2010 8:00 am
by verwire02
I'm getting this error in my php code when I try and load my web page:

Fatal error: Call to undefined function mysql_pconnect() in /export/home/owl/owl-1.00/phplib/db_mysql.inc on line 77

I ensured that my php.ini file, located in /opt/coolstack/php5/lib/php.ini, does indeed have

extension=mysql.so
extension=mysqli.so

The mysql.so file is located in /opt/coolstack/php5/lib/php/extensions/no-debug-non-zts-20060613/mysql.so

Not sure why my app isn't see this file.

Any ideas?

Thanks,
Chris

Re: undefined function mysql_pconnect()

Posted: Wed Nov 10, 2010 9:45 am
by pickle
There may be multiple php.ini files on your computer - only one of which is used.

Create a new file & put this code in it:

Code: Select all

<?PHP

phpinfo();

?>
View that page & see what php.ini file is actually being loaded.