Oracle 5.0 Reference Manual page 2759

Table of Contents

Advertisement

Example 20.351.
<?php
class proxy extends MysqlndUhConnection {
public function getServerInformation($res) {
printf("%s(%s)\n", __METHOD__, var_export(func_get_args(), true));
$ret = parent::getServerInformation($res);
printf("%s returns %s\n", __METHOD__, var_export($ret, true));
return $ret;
}
}
mysqlnd_uh_set_connection_proxy(new proxy());
$mysqli = new mysqli("localhost", "root", "", "test");
var_dump($mysqli->server_info);
?>
The above example will output:
proxy::getServerInformation(array (
0 => NULL,
))
proxy::getServerInformation returns '5.1.45-debug-log'
string(16) "5.1.45-debug-log"
See Also
mysqlnd_uh_set_connection_proxy
mysqli_get_server_info
mysql_get_server_info
20.7.8.7.17.
MysqlndUhConnection::getServerStatistics
Copyright 1997-2012 the PHP Documentation Group. [2230]
MysqlndUhConnection::getServerStatistics
Gets the current system status
Description
public string MysqlndUhConnection::getServerStatistics(
mysqlnd_connection connection);
Gets the current system status.
Parameters
connection
Return Values
The system status message.
Examples
Example 20.352.
<?php
class proxy extends MysqlndUhConnection {
public function getServerStatistics($res) {
printf("%s(%s)\n", __METHOD__, var_export(func_get_args(), true));
Mysqlnd user handler plugin (mysqlnd_uh)
MysqlndUhConnection::getServerInformation
Mysqlnd connection handle. Do not modify!
MysqlndUhConnection::getServerStatistics
2739
example
example

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents