update : 2015.11.03
php.shukuma.com

검색:
 
 
Gets the current system status

maxdb_stat

maxdb::stat

(PECL maxdb >= 1.0)

maxdb_stat -- maxdb::statGets the current system status

설명

절차식 형식

string maxdb_stat ( resource $link )

객체 기반 형식

string maxdb::stat ( void )

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

반환값

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

예제

Example #1 객체 기반 형식

<?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 절차식 형식

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

위 예제의 출력 예시:

System status: Kernel    7<...>

참고