當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ociserverversion函數代碼示例

本文整理匯總了PHP中ociserverversion函數的典型用法代碼示例。如果您正苦於以下問題:PHP ociserverversion函數的具體用法?PHP ociserverversion怎麽用?PHP ociserverversion使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了ociserverversion函數的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: sql_server_info

 /**
  * Version information about used database
  * @param bool $raw if true, only return the fetched sql_server_version
  * @param bool $use_cache forced to false for Oracle
  * @return string sql server version
  */
 function sql_server_info($raw = false, $use_cache = true)
 {
     /**
      * force $use_cache false.  I didn't research why the caching code below is commented out
      * but I assume its because the Oracle extension provides a direct method to access it
      * without a query.
      */
     $use_cache = false;
     /*
     		global $cache;
     
     		if (empty($cache) || ($this->sql_server_version = $cache->get('oracle_version')) === false)
     		{
     			$result = @ociparse($this->db_connect_id, 'SELECT * FROM v$version WHERE banner LIKE \'Oracle%\'');
     			@ociexecute($result, OCI_DEFAULT);
     			@ocicommit($this->db_connect_id);
     
     			$row = array();
     			@ocifetchinto($result, $row, OCI_ASSOC + OCI_RETURN_NULLS);
     			@ocifreestatement($result);
     			$this->sql_server_version = trim($row['BANNER']);
     
     			$cache->put('oracle_version', $this->sql_server_version);
     		}
     */
     $this->sql_server_version = @ociserverversion($this->db_connect_id);
     return $this->sql_server_version;
 }
開發者ID:danielheyman,項目名稱:EazySubs,代碼行數:34,代碼來源:oracle.php

示例2: getServerVersion

 /**
  *	This function will return the version of the database server software.
  *
  *	@returns	The version of the database server software.
  */
 function getServerVersion()
 {
     // Connect
     $result = $this->connect();
     // Handle errors
     if (!$result && $this->_failOnError === true) {
         $error = ocierror();
         trigger_error($error['message'], YD_ERROR);
     }
     // Return the version
     return 'Oracle ' . ociserverversion($this->_conn);
 }
開發者ID:BackupTheBerlios,項目名稱:ydframework-svn,代碼行數:17,代碼來源:YDDatabaseDriver_oracle.php

示例3: sql_server_info

 /**
  * Version information about used database
  * @param bool $raw if true, only return the fetched sql_server_version
  * @return string sql server version
  */
 function sql_server_info($raw = false)
 {
     /*
     		global $cache;
     
     		if (empty($cache) || ($this->sql_server_version = $cache->get('oracle_version')) === false)
     		{
     			$result = @ociparse($this->db_connect_id, 'SELECT * FROM v$version WHERE banner LIKE \'Oracle%\'');
     			@ociexecute($result, OCI_DEFAULT);
     			@ocicommit($this->db_connect_id);
     
     			$row = array();
     			@ocifetchinto($result, $row, OCI_ASSOC + OCI_RETURN_NULLS);
     			@ocifreestatement($result);
     			$this->sql_server_version = trim($row['BANNER']);
     
     			$cache->put('oracle_version', $this->sql_server_version);
     		}
     */
     $this->sql_server_version = @ociserverversion($this->db_connect_id);
     return $this->sql_server_version;
 }
開發者ID:puring0815,項目名稱:OpenKore,代碼行數:27,代碼來源:oracle.php

示例4: function_exists

  <td align="left"><?php 
echo function_exists('mysql_connect') ? '<b class="ok">' . $okImg . '</b><span class="item"> (' . @mysql_get_server_info() . ')</span>' : '<span class="warning">' . $failedImg . ' Not available</span>';
?>
</td>
</tr>
<tr>
 <td class="item"><li>ODBC Support</li></td>
  <td align="left"><?php 
echo function_exists('odbc_connect') ? '<b class="ok">' . $okImg . '</b><span class="item"></span>' : '<span class="warning">' . $failedImg . ' Not available</span>';
?>
</td>
</tr>
<tr>
 <td class="item"><li>Oracle Support</li></td>
  <td align="left"><?php 
echo function_exists('oci_connect') ? '<b class="ok">' . $okImg . '</b><span class="item"> (' . ociserverversion() . ')</span>' : '<span class="warning">' . $failedImg . ' Not available</span>';
?>
</td>
</tr>
<tr>
 <td class="item"><li>PostgreSQL Support</li></td>
  <td align="left"><?php 
echo function_exists('pg_connect') ? '<b class="ok">' . $okImg . '</b><span class="item"></span>' : '<span class="warning">' . $failedImg . ' Not available</span>';
?>
</td>
</tr>
<tr>
 <td class="item"><li>SQLite Support</li></td>
  <td align="left"><?php 
echo function_exists('sqlite_open') ? '<b class="ok">' . $okImg . '</b><span class="item"> (' . sqlite_libversion() . ')</span>' : '<span class="warning">' . $failedImg . ' Not available</span>';
?>
開發者ID:magsilva,項目名稱:dotproject,代碼行數:31,代碼來源:vw_idx_check.php

示例5: _version

 /**
  * Version number query string
  *
  * @access  public
  * @return  string
  */
 function _version()
 {
     return ociserverversion($this->conn_id);
 }
開發者ID:qlixes,項目名稱:springphp,代碼行數:10,代碼來源:oci8_driver.php

示例6: getServerVersion

 /**
  *	This function will return the version of the database server software.
  *
  *	@returns	The version of the database server software.
  */
 function getServerVersion()
 {
     $this->connect();
     return 'Oracle ' . ociserverversion($this->_conn);
 }
開發者ID:BackupTheBerlios,項目名稱:ydframework-svn,代碼行數:10,代碼來源:YDDatabaseDriver_oracle.php

示例7: _version

 /**
  * Version number query string
  *
  * @access  public
  * @return  string
  */
 function _version()
 {
     $ver = ociserverversion($this->conn_id);
     return $ver;
 }
開發者ID:Calico90,項目名稱:codeigniter-version-scan,代碼行數:11,代碼來源:DB_oci8.php

示例8: sql_server_info

 /**
  * Version information about used database
  */
 function sql_server_info()
 {
     return @ociserverversion($this->db_connect_id);
 }
開發者ID:jambik,項目名稱:elenaburgon,代碼行數:7,代碼來源:oracle.php

示例9: getServerVersion

 /**
  * return version information about the server
  *
  * @param bool   $native  determines if the raw version string should be returned
  * @return mixed array/string with version information or MDB2 error object
  * @access public
  */
 function getServerVersion($native = false)
 {
     $connection = $this->getConnection();
     if (PEAR::isError($connection)) {
         return $connection;
     }
     if ($this->connected_server_info) {
         $server_info = $this->connected_server_info;
     } else {
         $server_info = @ociserverversion($connection);
     }
     if (!$server_info) {
         return $this->raiseError(null, null, null, 'Could not get server information', __FUNCTION__);
     }
     // cache server_info
     $this->connected_server_info = $server_info;
     if (!$native) {
         if (!preg_match('/ (\\d+)\\.(\\d+)\\.(\\d+)\\.([\\d\\.]+) /', $server_info, $tmp)) {
             return $this->raiseError(MDB2_ERROR_INVALID, null, null, 'Could not parse version information:' . $server_info, __FUNCTION__);
         }
         $server_info = array('major' => $tmp[1], 'minor' => $tmp[2], 'patch' => $tmp[3], 'extra' => $tmp[4], 'native' => $server_info);
     }
     return $server_info;
 }
開發者ID:Rudi9719,項目名稱:lucid,代碼行數:31,代碼來源:oci8.php

示例10: ociserverversion

		<td><span class="warning">Not available</span></td>
	<?php 
}
?>
	</tr>
	<tr class="second">
		<td class="item"><li>Oracle Support</li></td>
	<?php 
if (function_exists('oci_connect')) {
    ?>
		<td align="left"><?php 
    echo $okImg;
    ?>
</td>
		<td><b class="message"><span class="item"> (<?php 
    echo ociserverversion();
    ?>
)</span></b></td>
	<?php 
} else {
    ?>
		<td align="left"><?php 
    echo $failedImg;
    ?>
</td>
		<td><span class="warning">Not available</span></td>
	<?php 
}
?>
	</tr>
	<tr class="second">
開發者ID:n2i,項目名稱:xvnkb,代碼行數:31,代碼來源:vw_idx_check.php

示例11: getVersion

 public function getVersion()
 {
     return @ociserverversion($this->_hMaster);
 }
開發者ID:Lovinity,項目名稱:EQM,代碼行數:4,代碼來源:oracle.class.php

示例12: ocidefinebyname

ocidefinebyname();
ocierror();
ociexecute();
ocifetch();
ocifetchinto();
ocifetchstatement();
ocifreecollection();
ocifreecursor();
ocifreedesc();
ocifreestatement();
ociinternaldebug();
ociloadlob();
ocilogoff();
ocilogon();
ocinewcollection();
ocinewcursor();
ocinewdescriptor();
ocinlogon();
ocinumcols();
ociparse();
ociplogon();
ociresult();
ocirollback();
ocirowcount();
ocisavelob();
ocisavelobfile();
ociserverversion();
ocisetprefetch();
ocistatementtype();
ociwritelobtofile();
ociwritetemporarylob();
開發者ID:christopheg,項目名稱:PHPCompatibility,代碼行數:31,代碼來源:deprecated_functions.php


注:本文中的ociserverversion函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。