RE: [PHP] Transfer control from one PHP file to another PHP file
| From: | John Coggeshall | Date: | Sun, 30 Jul 2000 19:55:27 +0000 |
| Subject: | RE: [PHP] Transfer control from one PHP file to another PHP file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-9033@lists.php.net to get a copy of this message | ||
> I know what you're looking for, and I'm sure it doesn't exist, as
> it would be approximated to GOTO, and us geeks tend to frown
> on GOTO :-)
Frowned upon? I got hit once (Really) for using a goto (us developers take
such abuse! ;-) )
> If what I'm asking isn't possible to do, is there at least a way to abort
> all the accumulated output to the browser at a given point in the script?
Well, if your looking to stop the script dead in it's tracks, you can use
exit() I believe. If you are looking to stop sending output to the
browser... well that's just as simple as not sending any print or unparsed
HTML statements.
John