v5:reference:connection:serverinfo
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
v5:reference:connection:serverinfo [2023/06/04 11:41] – removed - external edit (Unknown date) 127.0.0.1 | v5:reference:connection:serverinfo [2023/06/04 11:52] (current) – Improve description dregad | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== serverInfo ====== | ||
+ | ~~NOTOC~~ | ||
+ | <WRAP right box> | ||
+ | == Syntax == | ||
+ | string[] serverInfo() | ||
+ | </ | ||
+ | ===== Description ===== | ||
+ | The function returns an array with general information about the database server. | ||
+ | |||
+ | ^ Key ^ Description | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | Additional, driver-specific keys may be present. | ||
+ | |||
+ | <WRAP clear/> | ||
+ | <WRAP tip> | ||
+ | In portable applications, | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Usage ===== | ||
+ | <code php> | ||
+ | /* | ||
+ | * Connection to Oracle Database | ||
+ | */ | ||
+ | $ar = $db-> | ||
+ | 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 php> | ||
+ | /* | ||
+ | * Connection to IBM DB2 database | ||
+ | */ | ||
+ | $ar = $db-> | ||
+ | print_r($ar); | ||
+ | /* | ||
+ | * Returns: | ||
+ | Array | ||
+ | ( | ||
+ | [version] => DB2 v10.5.0.5:5 | ||
+ | [fixpack] => 5 | ||
+ | [description] => | ||
+ | ) | ||
+ | |||
+ | </ |
v5/reference/connection/serverinfo.txt · Last modified: 2023/06/04 11:52 by dregad