MaxDB İşlevleri
PHP Manual

maxdb_stat

maxdb::stat

(PECL maxdb >= 1.0)

maxdb_stat -- maxdb::stat — Gets the current system status

Açıklama

Yordamsal kullanım

string maxdb_stat ( resource $link )

Nesne yönelimli kullanım

string maxdb::stat ( void )

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

Dönen Değerler

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

Örnekler

Örnek 1 Nesne yönelimli kullanım

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

Örnek 2 Yordamsal kullanım

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

Yukarıdaki örnek şuna benzer bir çıktı üretir:

System status: Kernel    7<...>

Ayrıca Bakınız


MaxDB İşlevleri
PHP Manual