之間有什麼區別如下:PHP&mysqli:持久連接和交互有什麼區別?
// Persistent connection
$mysqli->real_connect("p:" . $host, $user, $pass, $db, null, null, 0);
和
// Interactive connection
$mysqli->real_connect($host, $user, $pass, $db, null, null, MYSQLI_CLIENT_INTERACTIVE);
甚至這一個...
// Interactive AND persistent
$mysqli->real_connect("p:" . $host, $user, $pass, $db, null, null, MYSQLI_CLIENT_INTERACTIVE);
儘管有點幫助,但這個答案還不夠詳細,我無法提供。但是,謝謝你的回答! – 2012-07-09 11:28:41