|
Related Examples ( Source code ) » die Examples ( Source code ) » Creating an HTML Form That Accepts Mail-Related Information Examples ( Source code ) » Send email with CC and BCC Examples ( Source code ) » Authenticate user Examples ( Source code ) » Open browser password dialog and authenticate user based on database Examples ( Source code ) » Adding a New Node to contact.xml Examples ( Source code ) » SAX parser in action Examples ( Source code ) » A simple XML parser Examples ( Source code ) » Turning an XML Document into an Array Examples ( Source code ) » Using a Default Handler Examples ( Source code ) » Parsing a Processing Instruction Examples ( Source code ) » Generating Tables from XML Examples ( Source code ) » Transforming XML into Basic HTML Examples ( Source code ) » Selecting a Database Examples ( Source code ) » PHP code to establish a connection with MySQL Examples ( Source code ) » Close database connections Code Examples / Notes » diematthias dot schniedermeyer
To get a perl-like die you can/should append this snipped . " File: " . __FILE__ . " on line: " . __LINE__ e.g. die ("Error" . " File: " . __FILE__ . " on line: " . __LINE__); 28-sep-2004 05:36
Perhaps the Coldfusion query below can be answered as follows: --------- (From the "User Contributed Notes" for the PHP construct "exit") nospam at mydomain dot com 27-Sep-2004 10:12 Using return instead of exit is to prefer when you want the script that you have included inside another script to die but continue to execute the main script. // Radcliff --------- jbailey
die doesn't prevent destructors from being run, so the script doesn't exit immediately, it still goes through cleanup routines.
|