thumbliner Posted April 27, 2011 Share Posted April 27, 2011 Have a look and please explain [attachment deleted by admin] Quote 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. Quote 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. Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.