You are here: Re: "headers already sent" madness « PHP Programming Language « IT news, forums, messages
Re: "headers already sent" madness

Posted by monomaniac21 on 05/15/06 15:21

Cheers Oli i never knew that! It works!

Oli Filth wrote:
> monomaniac21 said the following on 15/05/2006 12:30:
> > Hi all!
> >
> > How can i get round this. I want to stick an include at the top of my
> > script for the connection to DB and then somewhere below this process a
> > form and if all is good execute a redirect using the header() function.
> > However I get the headers already sent error. So ive had to type in the
> > connection details on the actual page which isnt something that i want
> > to keep doing for every page that has a redirect (i like using them a
> > lot).
> >
> > Is there some sort of work-around?
>
> Yes. Make sure all your include()-d files do not output *anything* to
> the browser, including any whitespace (or any other characters) outside
> of <?php ... ?>.
>
>
> --
> Oli

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация