ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


reference:serverinfo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
reference:serverinfo [2015/07/21 22:16] – created mnewnhamreference:serverinfo [2015/08/12 02:08] (current) – removed mnewnham
Line 1: Line 1:
-====== serverInfo ====== 
-~~NOTOC~~ 
-<WRAP tip> 
-In portable applications, always set the fetch mode to ADODB_FETCH_NUM, as the associative key names are not the same across all databases 
-</WRAP> 
-<WRAP right box> 
-== Syntax == 
-  string[] serverInfo() 
-</WRAP> 
-===== Description ===== 
-The function ''serverInfo()'' returns general information about the database server. See the above note about portability. 
  
-===== Usage ===== 
-<code php> 
-/* 
- * Connection to Oracle Database 
- */ 
-$ar = $db->getServerInfo(); 
-print_r($ar); 
-/* 
- * Returns:  
-Array 
-( 
-    [compat] => 11.2.0.0.0 
-    [description] => Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production 
-    [version] => 11.2.0.2.0 
-) 
-</code> 
-<code php> 
-/* 
- * Connection to IBM DB2 database 
- */ 
-$ar = $db->getServerInfo(); 
-print_r($ar); 
-/* 
- * Returns:  
-Array 
-( 
-    [version] => DB2 v10.5.0.5:5 
-    [fixpack] => 5 
-    [description] => 
-) 
- 
-</code> 
reference/serverinfo.1437509813.txt.gz · Last modified: 2017/04/21 11:20 (external edit)