PHP Doku:: Gets the current system status - function.maxdb-stat.html

Verlauf / Chronik / History: (15) anzeigen

Sie sind hier:
Doku-Startseite ≥ PHP-Handbuch ≥ Funktionsreferenz ≥ Datenbankerweiterungen ≥ Anbieterspezifische Datenbankerweiterungen ≥ MaxDB ≥ MaxDB Funktionen ≥ maxdb_stat -- maxdb::stat

Ein Service von Reinhard Neidl - Webprogrammierung.

MaxDB Funktionen

<<maxdb_ssl_set -- maxdb::ssl_set

maxdb_stmt_affected_rows -- maxdb_stmt->affected_rows>>

maxdb_stat

maxdb::stat

(PECL maxdb >= 1.0)

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

Beschreibung

Prozeduraler Stil

string maxdb_stat ( resource $link )

Objektorientierter Stil

string maxdb::stat ( void )

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

Rückgabewerte

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

Beispiele

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

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

Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:

System status: Kernel    7<...>

Siehe auch


Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)