chick3n Posted January 20, 2008 Share Posted January 20, 2008 Should we only open one mysql connection to the database for each page, and use that 1 connection for any SQL calls we need to make, or should we open/close the connection each time we need to get something? Or does it not really matter? Link to comment https://forums.phpfreaks.com/topic/86946-php-and-mysql-connections/ Share on other sites More sharing options...
chronister Posted January 20, 2008 Share Posted January 20, 2008 I personally open the connection once per page, do what I need to do and then close the connection.... which half the time I don't close the connection as it closes itself when it is done. Others my have a different opinion, but this is my $ .02 Nate Link to comment https://forums.phpfreaks.com/topic/86946-php-and-mysql-connections/#findComment-444518 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.