使用mysql_close() [英] using mysql_close()

查看:81
本文介绍了使用mysql_close()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在PHP查询结束时是否需要使用mysql_close()?

is it necessary to use mysql_close() at the end of a query in PHP?

推荐答案

手册:

mysql_close()关闭 与MySQL的非持久连接 与关联的服务器 指定的链接标识符.

mysql_close() closes the non-persistent connection to the MySQL server that's associated with the specified link identifier.

通常不使用mysql_close() 必要,因为非持久开放 链接在以下位置自动关闭 脚本执行结束.

Using mysql_close() isn't usually necessary, as non-persistent open links are automatically closed at the end of the script's execution.

有关该内容的更多信息这里

More reading about that here

这篇关于使用mysql_close()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆