The Server Pages
:: TSP Menu
- Home
- Authors
- Glossary
- RSS Feed

:: Servers
- CPanel
- Hosting
- Linux
- Windows

:: Webmaster
- Databases
- Design
- PHP
- Search Engines

:: Scripts
- Scripts

:: Documentation
- PHP Manual

:: Other
- Errors & Solutions
- TechPunt
- Wojjie

search for in the

maxdb_stmt_affected_rows> <maxdb_ssl_set
[edit] Last updated: Sat, 12 May 2012

view this page in

maxdb_stat

maxdb::stat

(PECL maxdb >= 1.0)

maxdb_stat -- maxdb::statGets the current system status

Description

Procedural style

string maxdb_stat ( resource $link )

Object oriented style

string maxdb::stat ( void )

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

Return Values

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

Examples

Example #1 Object oriented style

<?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 Procedural style

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

The above example will output something similar to:

System status: Kernel    7<...>

See Also



add a note add a note User Contributed Notes maxdb_stat
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites