note 60354 added to function.die
| From: | entropicchild at gmail dot com | Date: | Wed, 04 Jan 2006 18:01:03 +0000 |
| Subject: | note 60354 added to function.die | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-101207@lists.php.net to get a copy of this message | ||
Amen brotha. I'm trying to write an API for an OS web app right now, and it would be MUCH
easier if they hadn't used exit() and die() everywhere. I basically have to copy their libs and
create my own version of them (which happen to be nearly identical) JUST for the API. It will also
be a headache when any updates are made to the web app, as I will also have to synchronize the API
libs now.
Use exit() and die() SPARINGLY; only when absolutely necessary.
Thank you come again.
----
Manual Page -- http://www.php.net/manual/en/function.die.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+60354
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+60354&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+60354&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+60354&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+60354&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+60354&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+60354&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+60354&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+60354&report=yes
Search -- http://master.php.net/manage/user-notes.php