网站首页

>>

PHP初级教程手册


函数:mysql_pconnect()



mysql_pconnect

打开 MySQL 服务器持续连接。

语法: int mysql_pconnect(string [hostname] [:port], string [username], string [password]);

返回值: 整数

函数种类: 数据库功能

内容说明

本函数和 mysql_connect() 雷同。不同的地方在于使用本函数打开数据库时,程序会先寻找是否曾经执行过本函数,若执行过则返回先前执行的 ID。另一个不同的地方是本函数无法使用 mysql_close() 关闭数据库。



整理: (www.phpernote.com)

[ 上一页 下一页 ]

|