This is a discussion on Alternative to die()???? within the PHP General forums, part of the PHP Programming Forums category; --- Scott Fletcher <scott@abcoa.com> wrote: > I am wondering if there is an better alternative to the ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--- Scott Fletcher <scott@abcoa.com> wrote:
> I am wondering if there is an better alternative to the die() > because it prevent the HTML codes from being send to the browser, > including some php echo codes with HTML in it. Please explain what you're wanting to do. This question makes as much sense as asking for an alternative to echo, because echo sends output to the browser. Chris ===== My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp |
|
|||
|
Scott Fletcher wrote:
>I am wondering if there is an better alternative to the die() because it >prevent the HTML codes from being send to the browser, including some php >echo codes with HTML in it. > > If you don't want the page to end, don't use die at all. Simple as that. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. |
|
|||
|
On Thu, 2003-10-16 at 14:44, Scott Fletcher wrote:
> I am wondering if there is an better alternative to the die() because it > prevent the HTML codes from being send to the browser, including some php > echo codes with HTML in it. You can use exit() Cheers, Rob. -- ..------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------' |
|
|||
|
* Thus wrote Chris Shiflett (shiflett@php.net):
> --- Scott Fletcher <scott@abcoa.com> wrote: > > I am wondering if there is an better alternative to the die() > > because it prevent the HTML codes from being send to the browser, > > including some php echo codes with HTML in it. > > Please explain what you're wanting to do. This question makes as much sense as > asking for an alternative to echo, because echo sends output to the browser. btw, the answer to that is print() http://php.net/print :) Curt -- "My PHP key is worn out" PHP List stats since 1997: http://zirzow.dyndns.org/html/mlists/ |