PHP.nl

pg_tty

pg_tty

Return the TTY name associated with the connection

string **pg_tty**  $connection
returns the TTY name that server

side debugging output is sent to on the given PostgreSQL instance. pg_tty``connection

Opmerking: > is obsolete, since the server no longer pays attention to the TTY setting, but the function remains for backwards compatibility. pg_tty

connection

A containing the debug TTY of the . string``connection

Voorbeeld: example

<?php
$pgsql_conn = pg_connect("dbname=mark host=localhost");

if ($pgsql_conn) {
   print "Server debug TTY is: " . pg_tty($pgsql_conn) . "<br/>\n";
} else {
   print pg_last_error($pgsql_conn);
   exit;
}
?>