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

search for in the

pg_connection_status> <pg_connection_busy
[edit] Last updated: Fri, 18 May 2012

view this page in

pg_connection_reset

(PHP 4 >= 4.2.0, PHP 5)

pg_connection_reset Setzt die Verbindung zurück und verbindet neu

Beschreibung

bool pg_connection_reset ( resource $connection )

pg_connection_reset() setzt die Verbindung zurück. Dies ist nützlich bei der Fehlerbehandlung.

Parameter-Liste

connection

PostgreSQL Verbindungskennung.

Rückgabewerte

Gibt bei Erfolg TRUE zurück. Im Fehlerfall wird FALSE zurückgegeben.

Beispiele

Beispiel #1 pg_connection_reset() Beispiel

<?php
  $dbconn 
pg_connect("dbname=publisher") or die("Konnte keine Verbindung aufbauen.");
  
$dbconn2 pg_connection_reset($dbconn);
  if (
$dbconn2) {
      echo 
"Verbindung erfolgreich zurückgesetzt\n";
  } else {
      echo 
"Konnte die Verbindung nicht zurücksetzen\n";
  }
?>

Siehe auch



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

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