maxdb_stat

(PECL maxdb >= 1.0)
Gets the current system status
string maxdb_stat ( resource $link )

Procedural style

Object oriented style

string maxdb::stat ( void )

maxdb_stat() returns a string containing several information about the MaxDB server running.

Returns:

A string describing the server status. FALSE if an error occurred.

Examples:
Object oriented style
<?php
$maxdb = new maxdb("localhost", "MONA", "RED", "DEMODB");

/* check connection */
if (maxdb_connect_errno()) {
   printf("Connect failed: %s\n", maxdb_connect_error());
   exit();
}

printf ("System status: %s\n", $maxdb->stat());

$maxdb->close();
?>

Procedural style
<?php
$link = maxdb_connect("localhost", "MONA", "RED", "DEMODB");

/* check connection */
if (maxdb_connect_errno()) {
   printf("Connect failed: %s\n", maxdb_connect_error());
   exit();
}

printf("System status: %s\n", maxdb_stat($link));

maxdb_close($link);
?>

See also:

maxdb_get_server_info() -

doc_php
2016-02-24 16:17:14
Comments
Leave a Comment

Please login to continue.