(PECL CUBRID >= 8.3.0)
cubrid_get_server_info — Returns a string that represents the CUBRID server version
This function returns a string that represents the CUBRID server version.
The CUBRID connection. If the connection identifier is not specified, the last link opened by cubrid_connect() is assumed.
A string that represents the CUBRID server version; on success.
FALSE on failure.
Beispiel #1 cubrid_get_server_info() example
<?php
$link = cubrid_connect("localhost", 30000, "demodb2", "dba", "");
if (!$link)
{
die('Could not connect.');
}
printf("CUBRID server info: %s\n", cubrid_get_server_info($link));
?>
Das oben gezeigte Beispiel erzeugt folgende Ausgabe:
Result: CUBRID server info: 8.2.1.0209