Re: Redirection problems

From: Date: Sun, 29 Jul 2001 16:46:38 +0000
Subject: Re: Redirection problems
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-8549@lists.php.net to get a copy of this message
"Olafur Jakobsson" <opj30@hotmail.com> wrote in message news:F2601ndcx3Vp20N39x600004cce@hotmail.com... > does not work. A typical error msg is 'Warning: Cannot add header > information - headers already sent by This is a FAQ question - once you write ANY non-header data, no more header data can be sent. There are two solutions: one is, make sure your headers get sent first; second is, enable output buffering (which takes care of headers automatically). If you're doing the first, note that your php opener must start at the very beginning of the file, ie the opening <?php must start at the first character of the first line, and the same must be true for any include'd or require'd files.

« previous php.windows (#8549) next »