Query: pg_tty
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
PG_TTY(3) PG_TTY(3) pg_tty - Return the TTY name associated with the connectionSYNOPSISstring pg_tty ([resource $connection])DESCRIPTIONpg_tty(3) returns the TTY name that server side debugging output is sent to on the given PostgreSQL $connection resource. Note pg_tty(3) is obsolete, since the server no longer pays attention to the TTY setting, but the function remains for backwards compati- bility.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 debug TTY of the $connection, or FALSE on error.EXAMPLESExample #1 pg_tty(3) example <?php $pgsql_conn = pg_connect("dbname=mark host=localhost"); if ($pgsql_conn) { print "Server debug TTY is: " . pg_tty($pgsql_conn) . "<br/> "; } else { print pg_last_error($pgsql_conn); exit; } ?> PHP Documentation Group PG_TTY(3)
Related Man Pages |
---|
pg_escape_string(3) - php |
pg_lo_unlink(3) - php |
pg_trace(3) - php |
pg_tty(3) - php |
pg_version(3) - php |
Similar Topics in the Unix Linux Community |
---|
How to programm TTY devices under UNIX platform? |
Telnet connection to Sco Unixware from Windows 2000 taking longer !!! |
Memory full (waiting) |
Rmi |
connection from where? |