 |
 |
 |
 |
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-server-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-server-info.html on line 46
|
 |
 |
 |
 | |
|  |
(PHP 4 >= 4.0.5)
mysql_get_server_info - получает информацию о MySQL-сервере. Описание
string mysql_get_server_info ([resource link_identifier])
mysql_get_server_info() возвращает версию сервера, используемого в соединении link_identifier.
Если link_identifier опущен, используется последнее открытое соединение.
Пример 1. mysql_get_server_info
<?php
mysql_connect("localhost", "mysql_user", "mysql_password") or
die("could not connect");
printf ("MySQL server version: %s\n", mysql_get_server_info());
?> |
Пример даст на выходе:
MySQL server version: 4.0.1-alpha | |
См. также mysql_get_client_info(),
mysql_get_host_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-server-info.html on line 148
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-server-info.html on line 148
|
 |
 |
 |
 | |