RE: [PHP] Making your include files invisible (header() in if loop)

2002-01-31 Thread Peter Brown
I don't know if this is related but header() must be called before any actual output is sent. One way to resolve this is to use the ob_start() tag at the start of the code, this turns output buffering on. Mind you I am no expert and stand ready to be corected and berated. Peter I wanted to hi

RE: [PHP] Problem...header already sent by

2002-02-04 Thread Peter Brown
If you include ob_start() at the beginning of the code this will turn output buffering on and hence enable you to send the header() tag at any line in the code. Peter -Original Message- From: Ryan F. Bayhonan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 5 February 2002 5:54 PM To: Peter; [

Re: [PHP] Re: Cannot add header information...

2001-11-22 Thread Peter Brown
If you add ob_start(); at the start of your code, then you will be able to set Headers anywhere in your page. Peter > Per Waagen wrote: > > > Warning: Cannot add header information - headers already sent by (output > > started at /home/p/pe/perphp/public_html/login.php:4) in > > /home/p/pe/perp