note 17977 added to function.exit
| From: | ngoforth at earthnetNOSPAM dot net | Date: | Sat, 05 Jan 2002 20:33:46 +0000 |
| Subject: | note 17977 added to function.exit | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-24438@lists.php.net to get a copy of this message | ||
I found a problem using exit() in the middle of a batch of other code returning HTML to Navigator
4.7 for Windows.
I was trying to just jump out of the if clause I was in and finish displaying the page. In MSIE for
Mac and Windows this worked as I had expected. However, in Navigator 4.7 (Windows anyway) the page
stopped displaying completely. Not just the PHP generated code -- the bottom part of the document
that was written in plain HTML as well!
Finally worked around placing all the code within if statements and doing away with the exit() call
altogether.
Strange this would affect the browser at all, since all this was happening on the server!
--
http://www.php.net/manual/en/function.exit.php
http://master.php.net/manage/user-notes.php?action=edit+17977
http://master.php.net/manage/user-notes.php?action=delete+17977
http://master.php.net/manage/user-notes.php?action=reject+17977