RE: [PHP] Session support in PHP (buffering output to browser)

2001-02-19 Thread ..s.c.o.t.t..

there was an awesome article on phpbuilder about buffering output,
controlling when things got to the browser... so that you could
set cookies/headers anywhere in your script (or, as he talks about,
gzip content on the fly beofre outputting it to the browser)

http://phpbuilder.com/columns/argerich20010125.php3

PS: for anyone who doesnt know about phpbuilder.com yet,
it is a very very good site, full of very very good information

 -Original Message-
 From: Kath [mailto:[EMAIL PROTECTED]]
 Sent: Monday, February 19, 2001 12:54
 To: Sascha Andres; [EMAIL PROTECTED]
 Subject: Re: [PHP] Session support in PHP
 
 
 Make sure there are no lines (except a ?php of course) above your
 session_start(), INCLUDING blank lines.
 
 Example that will work:
 ?php
 session_start();
 ?
 HTML
 yadda yadda yadda etc etc etc
 
 Example that will not work:
 ?php
 
 session_start();
 ?
 HTML
 yadda yadda yadda etc etc
 
 Hope this helps,
 Kath
 
 - Original Message -
 From: "Sascha Andres" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, February 19, 2001 2:38 PM
 Subject: [PHP] Session support in PHP
 
 
  hi,
 
  when doing a session_start() followed by session_register(...)
  before the html header the first call stops with the error
  'html header already written'. how can i prevent the html header
  to be written until the session_start() is called?
  sascha
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Session support in PHP (buffering output to browser)

2001-02-19 Thread David VanHorn

At 05:53 PM 2/19/01 -0800, ..s.c.o.t.t.. wrote:
there was an awesome article on phpbuilder about buffering output,
controlling when things got to the browser... so that you could
set cookies/headers anywhere in your script (or, as he talks about,
gzip content on the fly beofre outputting it to the browser)

No longer necessary with the current release of Gzip
I have it up and running at http://www.dvanhorn.org
Nothing in the PHP code at all.

--
Dave's Engineering Page: http://www.dvanhorn.org
Where's dave? http://www.findu.com/cgi-bin/find.cgi?kc6ete-9



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]