PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

mysql_get_proto_info> <mysql_get_client_info
Last updated: Sat, 24 Mar 2007

view this page in

mysql_get_host_info

(PHP 4 >= 4.0.5, PHP 5, PECL mysql:1.0)

mysql_get_host_info — Načte informaci o hostu

Popis

string mysql_get_host_info ( [resource $link_identifier] )

mysql_get_host_info() vrací řetězec popisující použitý typ spojení v spojeni, obsahující server host name. Pokud je spojeni vynecháno, použije posledně otevřené spojení.

Příklad 1184. mysql_get_host_info Příklad

<?php
    mysql_connect
("localhost", "mysql_uziv", "mysql_heslod") or
        die(
"Nelze se spojit: " . mysql_error());
   
printf ("MySQL host info: %s\n", mysql_get_host_info());
?>

Předchozí příklad by mohl mít následující výstup:


MySQL host info: Localhost via UNIX socket

     

Dále také: mysql_get_client_info(), mysql_get_proto_info() and mysql_get_server_info().



add a note add a note User Contributed Notes
mysql_get_host_info
There are no user contributed notes for this page.

mysql_get_proto_info> <mysql_get_client_info
Last updated: Sat, 24 Mar 2007
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites