[PHP-DB] R: [PHP-DB] CONNECT From: Roberto Sartor (roberto <email protected>)
Date: 08/31/00

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 <email protected>]
> 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
>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe <email protected>
For additional commands, e-mail: php-db-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>