Query: cubrid_get_client_info
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
CUBRID_GET_CLIENT_INFO(3) 1 CUBRID_GET_CLIENT_INFO(3) cubrid_get_client_info - Return the client library versionSYNOPSISstring cubrid_get_client_info (void )DESCRIPTIONThis function returns a string that represents the client library version.PARAMETERSRETURN VALUESA string that represents the client library version; on success. FALSE on failure.EXAMPLESExample #1 cubrid_get_client_info(3) example <?php printf("%-30s %s ", "CUBRID PHP Version:", cubrid_version()); printf(" "); $conn = cubrid_connect("localhost", 33088, "demodb"); if (!$conn) { die('Connect Error ('. cubrid_error_code() .')' . cubrid_error_msg()); } $db_params = cubrid_get_db_parameter($conn); while (list($param_name, $param_value) = each($db_params)) { printf("%-30s %s ", $param_name, $param_value); } printf(" "); $server_info = cubrid_get_server_info($conn); $client_info = cubrid_get_client_info(); printf("%-30s %s ", "Server Info:", $server_info); printf("%-30s %s ", "Client Info:", $client_info); printf(" "); $charset = cubrid_get_charset($conn); printf("%-30s %s ", "CUBRID Charset:", $charset); cubrid_disconnect($conn); ?> The above example will output: CUBRID PHP Version: 9.1.0.0001 PARAM_ISOLATION_LEVEL 3 LOCK_TIMEOUT -1 MAX_STRING_LENGTH 1073741823 PARAM_AUTO_COMMIT 1 Server Info: 9.1.0.0212 Client Info: 9.1.0 CUBRID Charset: iso8859-1 PHP Documentation Group CUBRID_GET_CLIENT_INFO(3)
Related Man Pages |
---|
cubrid_pconnect(3) - php |
cubrid_column_types(3) - php |
cubrid_error_msg(3) - php |
cubrid_get_client_info(3) - php |
cubrid_get_db_parameter(3) - php |
Similar Topics in the Unix Linux Community |
---|
Problem with "printf" |
[bash]printf octal instead of decimal |
Internals of the printf function? |
No Syntax Error and No Output |
capture the output of printf into another variable |