pg_host

(PHP 3 <= 3.0.18, PHP 4 >= 4.0.0)

pg_host --  Returns the host name associated with the connection

Description

string pg_host (resource connection)

pg_host() returns the host name of the given PostgreSQL connection resource is connected to.

See also pg_connect() and pg_pconnect().