Bluehost.com Web Hosting $6.95

Alternative to die()????

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-16-2003
Chris Shiflett
 
Posts: n/a
Default Re: [PHP] Alternative to die()????

--- 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
Reply With Quote
  #2 (permalink)  
Old 10-16-2003
Scott Fletcher
 
Posts: n/a
Default Alternative to die()????

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.

Thanks..
Scott F.
Reply With Quote
  #3 (permalink)  
Old 10-16-2003
Leif K-Brooks
 
Posts: n/a
Default Re: [PHP] Alternative to die()????

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.
Reply With Quote
  #4 (permalink)  
Old 10-16-2003
Robert Cummings
 
Posts: n/a
Default Re: [PHP] Alternative to die()????

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. |
`------------------------------------------------------------'
Reply With Quote
  #5 (permalink)  
Old 10-16-2003
Curt Zirzow
 
Posts: n/a
Default Re: [PHP] Alternative to die()????

* 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/
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 02:53 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0