Knowledgebase
PHP Function mysql_pconnect fails with an error message
Posted by zz-James Moir on 21 June 2016 04:07 PM

Issue

Php function mysql_pconnect fails with an error message of :

Fatal error: Call to undefined function mysql_pconnect() in pathname-to-php-file on line linenumber


Cause

Because we employ php as a fastcgi script to enhance security for your website, there are no persistent connections available as there are when php is configured as an apache module.

Solution

You will need to recode your application to use the mysql_connect function (or some other suitable function) instead.