PHP mysql_get_host_info() Function
Complete PHP MySQL Reference
Definition and Usage
The mysql_get_host_info() function gets information about the MySQL host.
This function returns the type of MySQL connection
currently in use, or FALSE on failure.
Syntax
mysql_get_host_info(connection)
|
Parameter |
Description |
connection |
Optional. Specifies the MySQL connection. If not specified,
the last connection opened by mysql_connect() or mysql_pconnect() is used. |
Example
<?php
$con = mysql_connect("localhost", "peter", "abc123");
echo "MySQL host info: " . mysql_get_host_info($con);
?>
|
The output of the code above could be:
MySQL host info: localhost via TCP/IP
|
Complete PHP MySQL Reference
Learn XML with <oXygen/> XML Editor - Free Trial!
|
|
oXygen helps you learn to define,
edit, validate and transform XML documents. Supported technologies include XML Schema,
DTD, Relax NG, XSLT, XPath, XQuery, CSS.
Understand in no time how XSLT and XQuery work by using the intuitive oXygen debugger!
Do you have any XML related questions? Get free answers from the oXygen
XML forum
and from the video
demonstrations.
Download a FREE 30-day trial today!
|
|