pg_host

(PHP 3, PHP 4 >= 4.0b1)

pg_host --  Returns the host name associated with the connection

Description

string pg_host (int connection_id)

pg_host() will return the host name of the given PostgreSQL connection identifier is connected to.