PHP Manual
mysqli_get_host_info
(PHP 5)
mysqli_get_host_info(no version information, might be only in CVS)
mysqli->host_info -- Returns a string representing the type of connection usedDescription
Procdural style:
string mysqli_get_host_info ( mysqli link )Object oriented style (property):
class mysqli {string host_info
}
The mysqli_get_host_info() function returns a string
describing the connection represented by the link
parameter is using (including the server host name).
Parameters
linkProcedural style only: A link identifier returned by mysqli_connect() or mysqli_init()
Examples
Example 2. Procedural style
|
The above example will output:
Host info: Localhost via UNIX socket |
Support PHPRO.ORG
Search
PHPRO.ORG Poll
Warning: Participation in PHPRO.ORG polls may incorrectly lead you to believe your opinions matter.

RSS Feed




