请输入您要查询的百科知识:

 

词条 pg_get_pid
释义

pg_get_pid

(PHP 4 >= 4.3.0)

pg_get_pid -- Ping 数据库连接

说明

int pg_get_pid ( resource connection)

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

pg_get_pid实例

PostgreSQL 后端 PID

<?php

$conn = pg_pconnect("dbname=publisher");

if (!$conn) {

echo "An error occured.\";

exit;

}

// Backend process PID. Use PID with pg_get_notify()

$pid = pg_get_pid($conn);

?>

随便看

 

百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。

 

Copyright © 2004-2023 Cnenc.net All Rights Reserved
更新时间:2025/2/2 9:42:41