Re: Not a question of how, but a question of why

From: Date: Thu, 27 Jul 2000 13:55:14 +0000
Subject: Re: Not a question of how, but a question of why
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-8551@lists.php.net to get a copy of this message
That's exactly it. In php4 you can buffer the page, which allows you to do the same thing, but needs a few specific calls for each page (which i can't remember of course)... -Gfunk [-= Visit my website! http://www.gfunk007.com/ - ICQ:74477509 =-] ----- Original Message ----- From: Joe Sheble a.k.a. Wizaerd <wizaerd@wizaerd.com> To: General PHP LIst <php-general@lists.php.net> Sent: Thursday, July 27, 2000 11:53 PM Subject: [PHP] Not a question of how, but a question of why > I know this may sound impertinent, but that is not my intent at all, I'm > just looking for a better understanding of what's going on. And this email > is not meant to be a comparison either. But in ColdFusion I can call > CFHEADER or CFCOOKIE from anywhere within my page, regardless of whether > there has been output to the screen or not. This (the CFCOOKIE) part is > tremendously helpful because you can do a series of processes, displaying > status's, displaying tables, and then drop a cookie if so desired. > > Why do the Header() and SetCookie() function have to be before any output in > PHP? > > Is it because CF is a two step process, parsing out the CFM, generating > output, then passing it off to the web server to parse out the HTML and > serve up? And PHP is a one step process? > > Thanx > > Joseph (Joe) Sheble > a.k.a. Wizaerd > ======================================== > Wizaerd's Realm > http://www.wizaerd.com > 3D Art, ColdFusion, Illustration, Canvas > a little bit of everything... > ======================================== > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#8551) next »