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

search for in the

mysql_get_server_info> <mysql_get_host_info
Last updated: Fri, 18 Jul 2008

view this page in

mysql_get_proto_info

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

mysql_get_proto_info — Ottiene le informazion sul protocollo MySQL

Descrizione

int mysql_get_proto_info ([ resource $identificativo_connessione ] )

mysql_get_proto_info() restituisce la versione del protocollo usata dalla connessione identificativo_connessione . Se identificativo_connessione è omesso, sarà usata l'ultima connessione aperta.

Example #1 Esempio di mysql_get_proto_info

<?php
    mysql_connect
("localhost""utente_mysql""password_mysql") or
        die(
"Connessione non riuscita: " mysql_error());
    
printf ("Versione del protocollo MySQL: %s\n"mysql_get_proto_info());
?>

L'esempio riportato sopra dovrebbe produrre il seguente output:

Versione del protocollo MySQL: 10

Vedere anche: mysql_get_client_info(), mysql_get_host_info() e mysql_get_server_info().



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

mysql_get_server_info> <mysql_get_host_info
Last updated: Fri, 18 Jul 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites