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_options - 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_parameter_status" width="11" height="7"/> <pg_num_rows
Last updated: Thu, 31 May 2007

view this page in

pg_options

(PHP 4, PHP 5)

pg_options — 接続に関連するオプションを取得する

説明

string pg_options ( [resource $connection] )

pg_options() は、指定した PostgreSQL connection リソースの オプションを保持する文字列を返します。

パラメータ

connection

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

返り値

connection のオプションを文字列で返します。 エラー時には FALSE を返します。

例 1908. pg_options() の例

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

参考

pg_connect()



add a note add a note User Contributed Notes
pg_options
Robert Treat <xzilla at sourceforge>
01-Jan-2005 01:07
Apparently this function does not return the database name given in the connection string.  I tried this on apache 2.x/php4.3.x/pg7.4.x and apache 1.3.x/php5.x/pg8rc1 and saw this behavior on both setups.

pg_parameter_status" width="11" height="7"/> <pg_num_rows
Last updated: Thu, 31 May 2007
 
 
show source | credits | sitemap | contact | advertising | mirror sites