 |
 |
 |
 |
Warning: include(../levoe_menu.php) [ function.include]: failed to open stream: No such file or directory in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/mysql-get-host-info.html on line 46
Warning: include() [ function.include]: Failed opening '../levoe_menu.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/mysql-get-host-info.html on line 46
|
 |
 |
 |
 | |
|  |
(PHP 4 >= 4.0.5)
mysql_get_host_info - получает информацию о MySQL-хосте. Описаниеstring mysql_get_host_info ([resource link_identifier])
mysql_get_host_info() возвращает строку с описанием типа соединения, используемого с
link_identifier, включая имя хоста сервера. Если link_identifier опущен, используется последнее открытое соединение.
Пример 1. mysql_get_host_info
<?php
mysql_connect("localhost", "mysql_user", "mysql_password") or
die("could not connect");
printf ("MySQL host info: %s\n", mysql_get_host_info());
?> |
На выходе будет:
MySQL host info: Localhost via UNIX socket | |
См. также mysql_get_client_info(),
mysql_get_proto_info() и
mysql_get_server_info(). |  | |
|
 |
 |
 |
 |
Warning: include(../pravoe_menu.php) [ function.include]: failed to open stream: No such file or directory in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/mysql-get-host-info.html on line 147
Warning: include() [ function.include]: Failed opening '../pravoe_menu.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/mysql-get-host-info.html on line 147
|
 |
 |
 |
 | |