thumbliner Posted April 27, 2011 Share Posted April 27, 2011 Have a look and please explain [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/234860-warning-mysql_pconnect-functionmysql-pconnect/ Share on other sites More sharing options...
BluB Posted April 27, 2011 Share Posted April 27, 2011 I read up on this, and found this: http://www.php.net/manual/en/function.mysql-pconnect.php#99380 That will explain what might be causing the problem. You might also just consider using mysql_connect() instead, you should ask yourself if you actually need a persistent connection at all. Link to comment https://forums.phpfreaks.com/topic/234860-warning-mysql_pconnect-functionmysql-pconnect/#findComment-1207087 Share on other sites More sharing options...
gizmola Posted April 27, 2011 Share Posted April 27, 2011 Mysql has an extremely lightweight connection mechanism. Unfortunately pconnect is prone to causing mysql to run out of connections, and the best practice in my experience is just to use mysql_connect. Link to comment https://forums.phpfreaks.com/topic/234860-warning-mysql_pconnect-functionmysql-pconnect/#findComment-1207093 Share on other sites More sharing options...
thumbliner Posted April 27, 2011 Author Share Posted April 27, 2011 You guys are life savers. Thanks again. Link to comment https://forums.phpfreaks.com/topic/234860-warning-mysql_pconnect-functionmysql-pconnect/#findComment-1207106 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.