maxdb_stat

maxdb::stat

(PECL maxdb >= 1.0)

maxdb_stat -- maxdb::statGets the current system status

Opis

Styl proceduralny

maxdb_stat ( resource $link ) : string

Styl obiektowy

maxdb::stat ( void ) : string

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

Zwracane wartości

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

Przykłady

Przykład #1 Styl obiektowy

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

Przykład #2 Styl proceduralny

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

Powyższy przykład wyświetli coś podobnego do:

System status: Kernel    7<...>

Zobacz też:

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top