<?php require("http://php.wilson.gs"); // 回首頁 echo "http://php.wilson.gs/bible/function.php : 函式:mysql_pconnect()"; |
函式:mysql_pconnect() |
mysql_pconnect開啟 MySQL 伺服器長期連線。 語法: int mysql_pconnect(string [hostname] [:port], string [username], string [password]); 傳回值: 整數 函式種類: 資料庫功能
本函式和 mysql_connect() 雷同。不同的地方在於使用本函式開啟資料庫時,程式會先尋找是否曾經執行過本函式,若執行過則傳回先前執行的 ID。另一個不同的地方是本函式無法使用 mysql_close() 關閉資料庫。
|
![]() mail("wilson@biglobe.net.tw", "Feedback", $message); ?> |