pg_tty(3) php man page | unix.com

Man Page: pg_tty

Operating Environment: php

Section: 3

PG_TTY(3)																 PG_TTY(3)

pg_tty - Return the TTY name associated with the connection

SYNOPSIS
string pg_tty ([resource $connection])
DESCRIPTION
pg_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.
PARAMETERS
o $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 VALUES
A string containing the debug TTY of the $connection, or FALSE on error.
EXAMPLES
Example #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_parameter_status(3) - php
pg_lo_unlink(3) - php
pg_trace(3) - php
pg_version(3) - php
Similar Topics in the Unix Linux Community
How to programm TTY devices under UNIX platform?
Remote connection trought Telnet
connection from where?
How to find Hung connection in UNix Systems ?
How to get columns TIME and TTY of commands ps -A?