php OCIServerVersion类(方法)实例源码

下面列出了php OCIServerVersion 类(方法)源码代码实例,从而了解它的用法。

作者:BackupTheBerlio    项目:phporacleadmi   
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);
 }

作者:BackupTheBerlio    项目:oos-sv   
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;
	}


问题


面经


文章

微信
公众号

扫码关注公众号