Re: Cannot modify header information - headers already sent by ...
| From: | paragasu | Date: | Mon, 21 Apr 2008 16:28:14 +0000 |
| Subject: | Re: Cannot modify header information - headers already sent by ... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-273357@lists.php.net to get a copy of this message | ||
On Mon, Apr 21, 2008 at 11:37 PM, Daniel Brown <parasane@gmail.com> wrote:
> On Mon, Apr 21, 2008 at 11:33 AM, Waynn Lue <waynnlue@gmail.com> wrote:
> > I fixed this last time by looking for white space both before and
> > after the opening and closing php tags, as a Google search had
> > revealed. But this time, I've spent an hour running down various
> > files and not seeing what the heck is wrong. Here's the essential
> > setup.
> >
> > main.php
> > <?
> >
> > require_once 'shared_style.php';
> > require_once 'something.php'
> >
> > ?>
>
> If something.php is setting cookies and such, it has to be above
> shared_style.php. If you've already tried that with no success, post
> the code of something.php for us to view.
it is sometimes a good idea to put error_reporting(0);
just a suggestion ;)