Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

hw_info(3) [php man page]

HW_INFO(3)								 1								HW_INFO(3)

hw_Info - Info about connection

SYNOPSIS
string hw_info (int $connection) DESCRIPTION
Returns information about the current connection. PARAMETERS
o $connection - The connection identifier. RETURN VALUES
The returned string has the following format: <Serverstring>, <Host>, <Port>, <Username>, <Port of Client>, <Byte swapping> PHP Documentation Group HW_INFO(3)

Check Out this Related Man Page

PG_HOST(3)																PG_HOST(3)

pg_host - Returns the host name associated with the connection

SYNOPSIS
string pg_host ([resource $connection]) DESCRIPTION
pg_host(3) returns the host name of the given PostgreSQL $connection resource is connected to. PARAMETERS
o $connection - PostgreSQL database connection resource. When $connection is not present, the default connection is used. The default connection is the last connection made by pg_connect(3) or pg_pconnect(3). RETURN VALUES
A string containing the name of the host the $connection is to, or FALSE on error. EXAMPLES
Example #1 pg_host(3) example <?php $pgsql_conn = pg_connect("dbname=mark host=localhost"); if ($pgsql_conn) { print "Successfully connected to: " . pg_host($pgsql_conn) . "<br/> "; } else { print pg_last_error($pgsql_conn); exit; } ?> SEE ALSO
pg_connect(3), pg_pconnect(3). PHP Documentation Group PG_HOST(3)
Man Page