How to use mysql get server info in PHP
In this article I am going to explain about mysql_get_server_info function in PHP.
PHP mysql_get_server_info() Function
The PHP mysql_get_server_info function is used to get mysql server information. This function returns the mysql server version on success, or false on failure.
Syntax of mysql_get_server_info function
mysql_get_server_info(connection) |
Parameters in mysql_get_server_info function
It has only one parameter:
Parameter |
Description |
connection |
It specifies MySQL connection. |
Example of mysql_get_server_info function
<?php
$con=mysql_connect("localhost","gupta","sharad");
if(!$con)
{
die("Could not connect:".mysql_error());
}
echo "MySQL server information: " . mysql_get_server_info($con);
?>
|
Output:

You may also want to read these related articles :here
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here