[solved] die() function |
[eluser]Jason Stanley[/eluser]
Use return instead of die. It should be noted that die doesn't just instantly kill a script. Class deconstructors and specified shutdown functions still run before execution stops. I have run into trouble with this in the past when I was loading views on a deconstructor http://www.php.net/manual/en/function.exit.php |
Messages In This Thread |
[solved] die() function - by El Forum - 01-19-2012, 03:50 AM
[solved] die() function - by El Forum - 01-19-2012, 03:59 AM
[solved] die() function - by El Forum - 01-19-2012, 04:02 AM
[solved] die() function - by El Forum - 01-19-2012, 04:38 AM
[solved] die() function - by El Forum - 01-19-2012, 05:06 AM
[solved] die() function - by El Forum - 01-19-2012, 07:42 AM
[solved] die() function - by El Forum - 01-19-2012, 12:03 PM
[solved] die() function - by El Forum - 01-19-2012, 04:17 PM
|