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
undefined function mysql_pconnect()
Moderator: General Moderators
Re: undefined function mysql_pconnect()
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:
View that page & see what php.ini file is actually being loaded.
Create a new file & put this code in it:
Code: Select all
<?PHP
phpinfo();
?>Real programmers don't comment their code. If it was hard to write, it should be hard to understand.