Query: maxdb_stat
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
MAXDB_STAT(3) 1 MAXDB_STAT(3) maxdb_stat - Gets the current system status Procedural styleSYNOPSISstring maxdb_stat (resource $link)DESCRIPTIONObject oriented style string maxdb::stat (void ) maxdb_stat(3) returns a string containing several information about the MaxDB server running.RETURN VALUESA string describing the server status. FALSE if an error occurred.EXAMPLESExample #1 Object oriented style <?php $maxdb = new maxdb("localhost", "MONA", "RED", "DEMODB"); /* check connection */ if (maxdb_connect_errno()) { printf("Connect failed: %s ", maxdb_connect_error()); exit(); } printf ("System status: %s ", $maxdb->stat()); $maxdb->close(); ?> Example #2 Procedural style <?php $link = maxdb_connect("localhost", "MONA", "RED", "DEMODB"); /* check connection */ if (maxdb_connect_errno()) { printf("Connect failed: %s ", maxdb_connect_error()); exit(); } printf("System status: %s ", maxdb_stat($link)); maxdb_close($link); ?> The above example will output something similar to: System status: Kernel 7<...>SEE ALSOmaxdb_get_server_info(3). PHP Documentation Group MAXDB_STAT(3)
Related Man Pages |
---|
maxdb_get_server_info(3) - php |
maxdb_errno(3) - php |
maxdb_get_host_info(3) - php |
maxdb_ping(3) - php |
maxdb_use_result(3) - php |
Similar Topics in the Unix Linux Community |
---|
Dashboard style tool(s)? |