Name
mysql_get_proto_info
Synopsis
int mysql_get_proto_info([cresource connection
])
Returns
an integer that is the protocol version used in a MySQL server
connection. An optional connection
resource handle may be provided as the parameter; otherwise, the most
recently opened connection that is still open is assumed. This
function is available only in PHP 4.0.5 or later versions.
Example
<?php echo "You are connected to MySQL using protocol " . mysql_get_proto_info( ); ?>
Get Managing & Using MySQL, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.