一般来说,
对于 mysql_connect 有 mysql_close ,
但是mysql_pconnect没有任何关闭函数,
我在所有线程和教程中看到,他们都说对于 mysql pconnect ,
First, when connecting, the function would first try to find a (persistent)
link that's already open with the same host, username and password.
If one is found, an identifier for it will be returned instead of
opening a new connection.
FRO ---> php.net manual
b 默认情况下 mysql_pconnect 没有关闭函数,那么在教程中,
为什么他们这么说
the function would first try to find a (persistent) link that's already open with the same host
根据这一行:--可能在某些情况下,mysql_pconnect 连接将关闭,
那么当这个连接将关闭时,在什么情况下连接进入关闭模式,
或者是否有关闭连接超时或时间限制,
我觉得这个问题有点幼稚,
最佳答案
当 Web 服务器或 FastCGI 进程终止时,连接将关闭。
关于php - mysql pconnect ,当它关闭连接时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4154055/