阅读背景:

如果在PHP页面上不连续关闭MySQL连接会发生什么?

来源:互联网 

At the beginning of each PHP page I open up the connection to MySQL, use it throughout the page and close it at the end of the page. However, I often redirect in the middle of the page to another page and so in those cases the connection does not be closed. I understand that this is not bad for performance of the web server since PHP automatically closes all MySQL connections at the end of each page anyway. Are there any other issues here to keep in mind, or is it really true that you don't have to worry about closing your database connections in PHP?At the beginning of each PHP page I open up the




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: