Query: pg_ping
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
PG_PING(3) PG_PING(3) pg_ping - Ping database connectionSYNOPSISbool pg_ping ([resource $connection])DESCRIPTIONpg_ping(3) pings a database connection and tries to reconnect it if it is broken.PARAMETERSo $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 VALUESReturns TRUE on success or FALSE on failure.EXAMPLESExample #1 pg_ping(3) example <?php $conn = pg_pconnect("dbname=publisher"); if (!$conn) { echo "An error occurred. "; exit; } if (!pg_ping($conn)) die("Connection is broken "); ?>SEE ALSOpg_connection_status(3), pg_connection_reset(3). PHP Documentation Group PG_PING(3)
Related Man Pages |
---|
pg_end_copy(3) - php |
pg_lo_export(3) - php |
pg_lo_open(3) - php |
pg_put_line(3) - php |
pg_version(3) - php |
Similar Topics in the Unix Linux Community |
---|
Simple rules of the UNIX.COM forums: |
Forum Video Tutorial: How to Use Code Tags |
UNIX.COM 2017 Year End Summary |
Status of UNIX.COM Forum Transformation |
Denial Of Service Attack Update |