私はPHPアプリケーションをデバッグしています。ローカルデバッグウィンドウでMysql Linkとは何ですか?
、それは以下の情報を
- を示す名前と値のタイプ
- プログラム 内15 のMySQLリンク
LINKID変化の値をLINKID
デバッグウィンドウに表示されるmysqlリンクタイプとは何ですか?
また、誰でも機能の実行内容を説明できますか?ここで
はLINKIDを使用してPHPのコードです:
function connect($new_link = false)
{
if (!$this->LinkID) {
$server = ($this->DBPort != "") ? $this->DBHost . ":" . $this->DBPort : $this->DBHost;
if ($this->DBPersistent) {
$this->LinkID = @mysql_pconnect($server, $this->DBUser, $this->DBPassword);
} else {
$this->LinkID = @mysql_connect($server, $this->DBUser, $this->DBPassword, $new_link);
}
if (!$this->LinkID) {
$this->halt("Connect failed: " . $this->describe_error(mysql_errno(), mysql_error()));
return 0;
}
if (!mysql_select_db($this->DBDatabase, $this->LinkID)) {
$this->LinkID = 0;
$this->halt($this->describe_error(mysql_errno(), mysql_error()));
return 0;
}
}
return $this->LinkID;
}
値15のmysqlリンクは何を意味しますか? 場合によっては値が11,13,14などです –
私のアプリケーションで上記の関数はLinkIDの値を使用しています。この場合は15となります。 –
PHPが内部的に使用するデータベース接続を知ることは有用ですいつでも開いているものよりも)、値に影響はなく、値はあなたのアプリに影響を与えません。 – deceze