undefined function mysql_pconnect()

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
verwire02
Forum Newbie
Posts: 2
Joined: Thu Jul 08, 2010 2:49 pm

undefined function mysql_pconnect()

Post 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
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: undefined function mysql_pconnect()

Post 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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply