本文整理汇总了PHP中OCIServerVersion函数的典型用法代码示例。如果您正苦于以下问题:PHP OCIServerVersion函数的具体用法?PHP OCIServerVersion怎么用?PHP OCIServerVersion使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了OCIServerVersion函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Database
function Database($Server = 0)
{
global $DB;
settype($Server, "integer");
$this->DBName = $DB->Name($Server);
$this->DBPass = $DB->Pass($Server);
$this->DBUser = $DB->User($Server);
if (!isset($GLOBALS[md5($this->DBUser . $this->DBPass . $this->DBName)]) || !$GLOBALS[md5($this->DBUser . $this->DBPass . $this->DBName)]) {
$GLOBALS[md5($this->DBUser . $this->DBPass . $this->DBName)] = @ocilogon($this->DBUser, $this->DBPass, $this->DBName);
}
$this->conn = $GLOBALS[md5($this->DBUser . $this->DBPass . $this->DBName)];
if (!$this->conn) {
$this->error($this->conn);
}
$this->version = @OCIServerVersion($this->conn);
}
示例2: ServerInfo
function ServerInfo()
{
$arr['compat'] = $this->GetOne('select value from sys.database_compatible_level');
$arr['description'] = @OCIServerVersion($this->_connectionID);
$arr['version'] = ADOConnection::_findvers($arr['description']);
return $arr;
}