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 [2026/02/18 15:40] (current) – [Description] mnewnham | ||
|---|---|---|---|
| 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. The array contains 2 mandatory keys, and may also contain additional database-specific information. If writing portable applications, | ||
| + | |||
| + | ^ Key ^ Description | ||
| + | | '' | ||
| + | | '' | ||
| + | |||
| + | ===== Usage ===== | ||
| + | |||
| + | <code php> | ||
| + | /* | ||
| + | * Connecting to a SQL Server database | ||
| + | */ | ||
| + | |||
| + | $info = $db-> | ||
| + | |||
| + | print_r($info) | ||
| + | /* | ||
| + | * Returns | ||
| + | Array | ||
| + | ( | ||
| + | [description] => test-sqlserver.local connected to testdb | ||
| + | [version] => 17.00.0925 | ||
| + | ) | ||
| + | */ | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== 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] => | ||
| + | ) | ||
| + | |||
| + | </ | ||
