note 18843 added to function.exit
| From: | bandit at surfnonstop dot com | Date: | Thu, 07 Feb 2002 10:12:02 +0000 |
| Subject: | note 18843 added to function.exit | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-26332@lists.php.net to get a copy of this message | ||
...or even better, simply just 'return':
.htaccess:
.
.
.
php_value auto_prepend_file "[php file containing header]"
php_value auto_append_file "[php file containing footer]"
.
.
.
something.php:
.
.
.
echo "this appears.";
if (TRUE) { return }
echo "this won't appear.";
.
.
.
produces:
[header]
this appears.
[footer]
--
http://www.php.net/manual/en/function.exit.php
http://master.php.net/manage/user-notes.php?action=edit+18843
http://master.php.net/manage/user-notes.php?action=delete+18843
http://master.php.net/manage/user-notes.php?action=reject+18843