PHP Portal » PHP Handbuch » maxdb_stat

Werbung

maxdb_stat


(PECL maxdb >= 1.0)

maxdb_stat -- maxdb->statGets the current system status

Beschreibung

Procedural style:

string maxdb_stat ( resource $link )

Object oriented style (method):

maxdb
string maxdb->stat ( void )

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

Rückgabewerte

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

Beispiele

PHP Code
1
2
3
4
5
6
7
8
$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();

PHP Code
1
2
3
4
5
6
7
8
$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);

Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:

System status: Kernel    7<...>

Siehe auch