请问:PHP与MySQL是怎样链接的,也就是PHP调用并操作MySQL的原理。用的是:OLE DB,ADO,还是ODBC?怎样调用的API?下面的链接函数:
function __construct($host,$user,$pass,$db) {
$this->link_id=mysql_pconnect($host,$user,$pass); //连接数据库服务器
mysql_select_db($db,$this->link_id); //选择所需数据库
//mysql_query("set names utf8;");
}在这个函数里只用了一个“mysql_pconnect”函数,请问这个函数是什么功能?
function __construct($host,$user,$pass,$db) {
$this->link_id=mysql_pconnect($host,$user,$pass); //连接数据库服务器
mysql_select_db($db,$this->link_id); //选择所需数据库
//mysql_query("set names utf8;");
}在这个函数里只用了一个“mysql_pconnect”函数,请问这个函数是什么功能?
那么他用的是“OLE DB”还是“ADO”接口?
是直接调用MYSQL的API函数,而不经过数据库的吗?