PG_TTY(3)PG_TTY(3)pg_tty - Return the TTY name associated with the connectionSYNOPSIS
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)
Check Out this Related Man Page
PG_HOST(3)PG_HOST(3)pg_host - Returns the host name associated with the connectionSYNOPSIS
string pg_host ([resource $connection])
DESCRIPTION pg_host(3) returns the host name of the given PostgreSQL $connection resource is connected to.
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 name of the host the $connection is to, or FALSE on error.
EXAMPLES
Example #1
pg_host(3) example
<?php
$pgsql_conn = pg_connect("dbname=mark host=localhost");
if ($pgsql_conn) {
print "Successfully connected to: " . pg_host($pgsql_conn) . "<br/>
";
} else {
print pg_last_error($pgsql_conn);
exit;
}
?>
SEE ALSO pg_connect(3), pg_pconnect(3).
PHP Documentation Group PG_HOST(3)
Dear Export,
I want to begin an serial-communication application codes associated with TTY devices. But I don't know what key settings should be concerned after opening a TTY device file under UNIX plarform(SunOS 5.7)?
Could you give me some adivce? Thanks! (8 Replies)
Telnet connection to SCO Unixware server taking longer to
return the Login prompt !!!
Thanx in advance for any suggestions or help in this regard .
Cheers
KBiswas (9 Replies)
Hi
When I launch topas I have this result
I have a memory problem. I don't know how see the process which waiting.
How can I do that?
Thanks all!!! (0 Replies)
Hi ,
I am a beginner to JAVA . I am having trouble understanding the RMI connection .
I am trying to write a server which does the following :
1. Establishes a connection with a co-ordinator called Dispatcher through RMI . The Dispatcher actually contains the list of Providers where the servers... (0 Replies)
We have two servers , one is mount to another server , I am worry if the server is unstable , the connection ( mount ) will be broken , or when the server is rebooted , the connection will also be broken , can advise how can I make sure the mount is establish , can advise if I want to do the below... (1 Reply)
Well... finally I took and old SCO Server and it works fine to keep working my ERP, but now I have a "LITTLE" trouble... with the other server we've made a connection trought TinyTerm with a DYNDNS Domain, in my firewall I noticed that there's a RULE establishing that the IP 192.168.0.1 (Server IP... (4 Replies)
Hi,
Have anyone seen this problem, there is one remote side where their ftp connection to our server will always fail with connection closed by remote host and the second connection will be working.
is this an OS issue or network issue?
Thanks
Robert (4 Replies)
Hi All,
I got this /var/log/messages and I would like to know where this came from
messages:Feb 3 16:30:10 localhost PAM-Wheel: unknown user admin
messages:Feb 3 16:30:12 localhost pam_tally: pam_tally: pam_get_uid; no such user admin
messages:Feb 3 16:30:12 localhost PAM-Wheel: unknown... (0 Replies)
Hi Gurus ,
How to find Hung connection in Unix Systems
I use ps -ef | grep "XXXX"
it lists out some conections..How to know what is hung connection in there.. (3 Replies)
Hi,
Commands ps -A include four parameters are PID, TTY, TIME and CMD. I can not found pathnames of TTY and TIME which I can read from file in C language to get information display on screen. Thank you!
Ex:
PID TTY TIME CMD
1 ? 00:00:01 init (2 Replies)
Hi,
i have to perform a connection from unix to sql server database, using TCP protocol.
I have all connection parameters (user,pwd,server_name,port,db_name).
How can i perform this connection, by unix console ?
is it available a command similar to this one (for oracle):
sqlplus... (1 Reply)
Good evening
Need you help please
I just wanna to print out my current https connection and other users http connection which the application resides, for instance i connect to the below url to login into the application:
https://serverappp01:14100/portal/Portal.html#
In another session... (4 Replies)