R: [PHP-DB] CONNECT

From: Date: Thu, 31 Aug 2000 12:03:15 +0000
Subject: R: [PHP-DB] CONNECT
Groups: php.db 
Request: Send a blank email to php-db+get-2520@lists.php.net to get a copy of this message
Yes. It's die. From manual: Output a message and terminate the current script void die (string message) This language construct outputs a message and terminates parsing of the script. It does not return anything. Example 1. die example 1 2 <?php 3 $filename = '/path/to/data-file'; 4 $file = fopen ($filename, 'r') 5 or die("unable to open file ($filename)"); 6 ?> 7 See also exit(). Ciao Roberto > -----Messaggio originale----- > Da: Enrico Comini [mailto:algobit@algobit.com] > Inviato: giovedì 31 agosto 2000 13.39 > A: ML-PHP-DB > Oggetto: [PHP-DB] CONNECT > > > Hi, > I use PHP & Postgresql > > there is a script ora a funcion to use when PG_CONNECT fail ? > (ex. retry > /abort/etc.) > Thanks >

« previous php.db (#2520) next »