Join Up!
96811 members and counting!

 
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links 
search for in the  
previousmysql_get_host_infomysql_get_server_infonext
Last updated: Mon, 28 Oct 2002
view the printer friendly version or the printer friendly version with notes or change language to Czech | Finnish | Spanish

mysql_get_proto_info

(PHP 4 >= 4.0.5)

mysql_get_proto_info -- Liefert MySQL Protokollinformationen

Beschreibung

int mysql_get_proto_info ( [resource Verbindungs-Kennung])

mysql_get_proto_info() liefert die Protokollversion, die die Vebindung Verbindungs-Kennung nutzt. Fehlt der Parameter Verbindungs-Kennung, wird die zuletzt hergestellte Verbindung benutzt.

Beispiel 1. mysql_get_proto_info Beispiel

<?php
    mysql_connect("localhost", "mysql_user", "mysql_password") or
        die("Keine Verbindung möglich");
    printf ("MySQL protocol version: %s\n", mysql_get_proto_info());
?>

Das obige Beispiel gibt folgendes aus:

MySQL protocol version : 10

See also: mysql_get_client_info(), mysql_get_host_info() und mysql_get_server_info().

User Contributed Notes
mysql_get_proto_info
add a note about notes
There are no user contributed notes for this page.
previousmysql_get_host_infomysql_get_server_infonext
Last updated: Mon, 28 Oct 2002
Copyright © 2001, 2002 The PHP Group
All rights reserved.
This mirror generously provided by: http://phpbuilder.com/
Last updated: Thu Oct 31 18:34:28 2002 EST