Warning: include(../lntop.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 19

Warning: include() [function.include]: Failed opening '../lntop.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 19

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



Учебник РНР
НазадВперёд

mysql_get_host_info

(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().


Назад Оглавление Вперёд
mysql_get_client_info Вверхmysql_get_proto_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

Rambler's Top100
© 2009 Тест скорости интернета |  Boont.Ru

Warning: include(../lnbottom.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 273

Warning: include() [function.include]: Failed opening '../lnbottom.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 273