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_parameter_status(3) - php
pg_host(3) - php
pg_last_error(3) - php
pg_lo_unlink(3) - php
pg_tty(3) - php
Similar Topics in the Unix Linux Community
How to programm TTY devices under UNIX platform?
Memory full (waiting)
Make sure connection
ftp first connection closed
Print out my current http connection