Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: pg_tty - Manual
[go: Go Back, main page]

PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

pg_unescape_bytea" width="11" height="7"/> <pg_transaction_status
Last updated: Fri, 10 Oct 2008

view this page in

pg_tty

(PHP 4, PHP 5)

pg_tty 接続に関する TTY 名を返す

説明

string pg_tty ([ resource $connection ] )

pg_tty() は、指定した PostgreSQL connection リソースで、サーバ側のデバッグ出力が 送られる tty 名を返します。

注意: pg_tty() は現在は使用されません。今はサーバが TTY 設定を気にする必要がないからです。しかし、過去との互換性を 保持するためにこの関数は残されています。

パラメータ

connection

PostgreSQL データベース接続リソース。connection が指定されていない場合はデフォルトの接続が使用されます。 デフォルトの接続は、直近の pg_connect() あるいは pg_pconnect() によって作成されたものです。

返り値

connection のデバッグ TTY を文字列で返します。 エラー時には FALSE を返します。

例1 pg_tty() の例

<?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;
}
?>



add a note add a note User Contributed Notes
pg_tty
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites