Oracle 5.0 Reference Manual page 2300

Table of Contents

Advertisement

Description
int mysql_get_proto_info(
resource link_identifier
=
Retrieves the MySQL protocol.
Parameters
link_identifier
Return Values
Returns the MySQL protocol on success or
Examples
Example 20.56.
<?php
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
printf("MySQL protocol version: %s\n", mysql_get_proto_info());
?>
The above example will output something similar to:
MySQL protocol version: 10
See Also
mysql_get_client_info
mysql_get_host_info
mysql_get_server_info
20.7.2.5.29.
mysql_get_server_info
Copyright 1997-2012 the PHP Documentation Group. [2230]
mysql_get_server_info
Get MySQL server info
Original MySQL API (Mysql)
=NULL);
mysql_get_proto_info
Warning
This extension is deprecated as of PHP 5.5.0, and will be removed in the
future. Instead, the
also
MySQL: choosing an API
Alternatives to this function include:
mysqli_get_server_info
The MySQL connection. If the link identifier is not specified, the
last link opened by
mysql_connect
is found, it will try to create one as if
with no arguments. If no connection is found or established, an
level error is generated.
E_WARNING
on failure.
FALSE
example
MySQLi
or
PDO_MySQL
guide and
2280
is assumed. If no such link
mysql_connect
extension should be used. See
related FAQ
for more information.
was called

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 5.0 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Mysql 5.0

Table of Contents