mysql_get_host_info(3) php man page | unix.com

Man Page: mysql_get_host_info

Operating Environment: php

Section: 3

MYSQL_GET_HOST_INFO(3)							 1						    MYSQL_GET_HOST_INFO(3)

mysql_get_host_info - Get MySQL host info

SYNOPSIS
Warning This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQL extension should be used. See also MySQL: choosing an API guide and related FAQ for more information. Alternatives to this function include: omysqli_get_host_info(3) o PDO::getAttribute string mysql_get_host_info ([resource $link_identifier = NULL])
DESCRIPTION
Describes the type of connection in use for the connection, including the server host name. o $ link_identifier -The MySQL connection. If the link identifier is not specified, the last link opened by mysql_connect(3) is assumed. If no such link is found, it will try to create one as if mysql_connect(3) was called with no arguments. If no connection is found or established, an E_WARNING level error is generated. Returns a string describing the type of MySQL connection in use for the connection or FALSE on failure. Example #1 mysql_get_host_info(3) example <?php $link = mysql_connect('localhost', 'mysql_user', 'mysql_password'); if (!$link) { die('Could not connect: ' . mysql_error()); } printf("MySQL host info: %s ", mysql_get_host_info()); ?> The above example will output something similar to: MySQL host info: Localhost via UNIX socket mysql_get_client_info(3), mysql_get_proto_info(3), mysql_get_server_info(3). PHP Documentation Group MYSQL_GET_HOST_INFO(3)
Related Man Pages
mysql_error(3) - php
mysql_errno(3) - php
mysql_client_encoding(3) - php
mysql_get_server_info(3) - php
mysql_thread_id(3) - php
Similar Topics in the Unix Linux Community
Problem with PHP and MySQL
Linux server locking up
Can't Install MySQL with PHP
Yesterdays PHP MySQL Typo and Recovery
Order of the Hippo Lifetime Achievement Award Criteria