Query: pg_host
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
PG_HOST(3) PG_HOST(3) pg_host - Returns the host name associated with the connectionSYNOPSISstring pg_host ([resource $connection])DESCRIPTIONpg_host(3) returns the host name of the given PostgreSQL $connection resource is connected to.PARAMETERSo $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 VALUESA string containing the name of the host the $connection is to, or FALSE on error.EXAMPLESExample #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 ALSOpg_connect(3), pg_pconnect(3). PHP Documentation Group PG_HOST(3)
Related Man Pages |
---|
pg_last_notice(3) - php |
pg_connect(3) - php |
pg_escape_string(3) - php |
pg_lo_export(3) - php |
pg_version(3) - php |
Similar Topics in the Unix Linux Community |
---|
Killing host connection |
check Internet connection? |
connection from where? |
How to find Hung connection in UNix Systems ? |
Print out my current http connection |