maxdb_stat

maxdb::stat

(PECL maxdb >= 1.0)

maxdb_stat -- maxdb::statGets the current system status

Descrierea

Stil procedural

maxdb_stat ( resource $link ) : string

Stil obiect-orientat

maxdb::stat ( void ) : string

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

Valorile întoarse

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

Exemple

Example #1 Stil obiect-orientat

<?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();
?>

Example #2 Stil procedural

<?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);
?>

Exemplul de mai sus va afișa ceva similar cu:

System status: Kernel    7<...>

A se vedea și