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

search for in the

pg_get_result> <pg_get_notify
[edit] Last updated: Fri, 25 May 2012

view this page in

pg_get_pid

(PHP 4 >= 4.3.0, PHP 5)

pg_get_pidPing 数据库连接

说明

int pg_get_pid ( resource $connection )

pg_get_pid() 取得后端(数据库服务器进程)的 PID。PID 用来检查其它进程是否发送了 NOTIFY 消息。

Example #1 PostgreSQL 后端 PID

<?php 
$conn 
pg_pconnect("dbname=publisher");
if (!
$conn) {
    echo 
"An error occured.\n";
    exit;
}

// Backend process PID. Use PID with pg_get_notify()
$pid pg_get_pid($conn);
?>

参见 pg_get_notify()



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

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