Comunitatea PHP Romania
 

 
pg_connection_reset

pg_connection_reset

(PHP 4 >= 4.2.0, PHP 5)

pg_connection_reset --  Reset connection (reconnect)

Description

bool pg_connection_reset ( resource connection)

pg_connection_reset() resets the connection. It is useful for error recovery. Returnează TRUE în caz de succes, FALSE în caz contrar.

Exemplu 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";
    }
?>

See also pg_connect(), pg_pconnect() and pg_connection_status().

Ultimele discutii in forum RSS Forum

Ultimele articole Ultimele articole

Top membri

Pirahna Pirahna
la birou
carco carco
Bucuresti
Birkoff Birkoff
Bucuresti
Mascka Mascka
Braila
raul_ raul_
whooper whooper
Toronto ON
mihaitha mihaitha
Sibiu
gabysolomon gabysolomon
Bacau
oriceon oriceon
Constanta
garlicinicolae garlicinicolae

Newsletter


Email:
 inscriere
 renuntare
 
 Arhiva newsletter

Parteneriat

Copyright © 2001-2008 PHP Romania Add PHPRomania to Google Add PHPRomania to Del.icio.us Add PHPRomania to Stumbleupon Add PHPRomania to Yahoo! Add PHPRomania to Digg Add PHPRomania to Blink Free Credit Reports | Remortgages | Secured Loans | Marbella Property Guide | Debt
Ads: Partener Way2Web Nework: gazduire web | inregistrare domenii | web design | imobiliare | web hosting
Powered by Simplis