array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'function.pg-connection-reset.php', 1 => 'pg_connection_reset', ), 'up' => array ( 0 => 'ref.pgsql.php', 1 => 'PostgreSQL İşlevleri', ), 'prev' => array ( 0 => 'function.pg-connection-busy.php', 1 => 'pg_connection_busy', ), 'next' => array ( 0 => 'function.pg-connection-status.php', 1 => 'pg_connection_status', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/pgsql/functions/pg-connection-reset.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8)
pg_connection_reset — Reset connection (reconnect)
pg_connection_reset() resets the connection. It is useful for error recovery.
connection
PostgreSQL veritabanı bağlantısı özkaynağı.
Sürüm: | Açıklama |
---|---|
8.1.0 |
bağlantı bağımsız değişkeni artık
PgSql\Connection nesnesi kabul ediyor, evvelce bir
özkaynak kabul ederdi.
|
Örnek 1 pg_connection_reset() example
<?php
$dbconn = pg_connect("dbname=publisher") or die("Could not connect");
$dbconn2 = pg_connection_reset($dbconn);
if ($dbconn2) {
echo "reset successful\n";
} else {
echo "reset failed\n";
}
?>