English 中文(简体)
1. 我的ql
原标题:mysql_connect connection lifetime
  • 时间:2009-10-27 11:43:00
  •  标签:

What happes when the script that made @mysql_connect($server, $user, $password) dies?
How long does it live?

谢谢!

最佳回答

Connections opened by mysql_connect() are closed at script exit, unless closed earlier by calls to mysql_close().

rel=“nofollow noreferer”> http://www.phpdig.net/ref/rn41re774.html

问题回答

当你的文字结束时,它将结束,但最好的做法是,在你不需要时,明确使用<密码>mysql_close(<>/code>——释放链接。





相关问题
热门标签