You are here: Re: No redirection? Please help. « PHP Programming Language « IT news, forums, messages
Re: No redirection? Please help.

Posted by David Haynes on 10/20/05 03:46

Raj wrote:
> Hi,
>
> The following script outputs 12345. It should go to intro_page.php after the
> 4 session variables have been populated. Can you see what I'm doing wrong?
>
> Many thanks,
>
> Raj (newbie)

Once you do any output, you cannot use the header() function and get it
to do what you expect. Calling header *must* be done *before* any other
output.

Try changing the print() to some form of debug logging instead if you
want to trace your code this way.

-david-

 

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

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