mysql_get_proto_info() returns the protocol version used by connection link_identifier. If link_identifier is omitted, the last opened connection will be used.
<?php
mysql_connect("localhost", "mysql_user", "mysql_password") or
die("Could not connect: " . mysql_error());
printf ("MySQL protocol version: %s\n", mysql_get_proto_info());
?>The above example would produce the following output:
MySQL protocol version: 10See also mysql_get_client_info(), mysql_get_host_info() and mysql_get_server_info().
| This HTML Help has been published using the chm2web software. |