pg_tty()
pg_tty - Return the TTY name associated with the connection
Syntax
string pg_tty (
resource $connection)
Arguments
- 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() or pg_pconnect().
Description
pg_tty() returns the TTY name that server side debugging output is sent to on the given PostgreSQL connection resource.
Version
PHP 4, 5
Return value
A string containing the debug TTY of the connection, or FALSE on error.