PHP: maxdb_stat - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

maxdb_stmt_affected_rows maxdb_ssl_set

Last updated: Sat, 27 Jan 2007

view this page in

# maxdb_stat

(PECL)

maxdb_stat

(no version information, might be only in CVS)

maxdb->stat -- Gets the current system status

## Description

Procedural style:

string maxdb_stat ( resource link )

Object oriented style (method):

class maxdb {
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.

## See also

maxdb_get_server_info()

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

Пример 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 examples would produce the following output:

    System status: Kernel    7<...>

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

Last updated: Sat, 27 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 09:32:46 2007 PST