note 83135 added to function.die
| From: | ecziegleratgmail dot com at osu1 dot php dot net | Date: | Mon, 12 May 2008 13:06:00 +0000 |
| Subject: | note 83135 added to function.die | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-139308@lists.php.net to get a copy of this message | ||
If you are using auto append file (auto_append_file ="_end.php";) on your php.ini, be
carefull on using die anywhere you want your appended file to be called. Souds obvious now but took
me a good 1 hour to realise why one script was not appending end file as expected.
I solved using
return instead; it works anywhere not just inside functions and the
effect is pretty much the same as die.
----
Server IP: 92.48.74.199
Probable Submitter: 83.217.96.34
----
Manual Page -- http://www.php.net/manual/en/function.die.php
Edit -- https://master.php.net/note/edit/83135
Del: integrated -- https://master.php.net/note/delete/83135/integrated
Del: useless -- https://master.php.net/note/delete/83135/useless
Del: bad code -- https://master.php.net/note/delete/83135/bad+code
Del: spam -- https://master.php.net/note/delete/83135/spam
Del: non-english -- https://master.php.net/note/delete/83135/non-english
Del: in docs -- https://master.php.net/note/delete/83135/in+docs
Del: other reasons-- https://master.php.net/note/delete/83135
Reject -- https://master.php.net/note/reject/83135
Search -- https://master.php.net/manage/user-notes.php