I have a question on mysql_pconnect().Please if anyone can help mail me at nairit1@indiatimes.com or reply in phpbuilder.com
It is well documented in manuals that a resource opened by
$link = mysql_pconnect("host", "user", "pass");
cannot be closed by mysql_close();
Suppose the resource $link is declared as a private member of a class.
private $link;
Then
$this->link = mysql_pconnect("host", "user", "pass");
this is executed from some public function connector() of the class by invoking the function as say
$ob_class1->connector();
After that we are executing SQL statements using the connection established by that resource.
Now my question is if the class object is killed by
unset($ob_class1);
will the persistent connection remain alive? Or is the connection being re-established from scratch as in mysql_connect() when the function connector() is again executed from some other page
?? :-)