You are here: Re: Baffling! Redirects with header() takes minutes to respond. « PHP Programming Language « IT news, forums, messages
Re: Baffling! Redirects with header() takes minutes to respond.

Posted by Wayne on 11/16/05 20:06

On Wed, 16 Nov 2005 10:02:04 +0000, Peter Fox
<peterfox@eminent.demon.co.uk.not.this.bit.no.html> wrote:

>Following on from Monty's message. . .
>>The only thing that did work was to add "exit;" after all
>>header("Location:...") functions. I checked the online PHP manual, and
>>there's no mention that this is necessary, so, I am totally baffled as
>>to why this suddenly started happening.
>>
>Just out of curiosity. What happens if you replace exit; with
>print("after header"); ? (I can't say I've ever had this prob 'cos I
>always used exit anyway.)

You shouldn't see anything. You'll end up transmitting "after header"
to the browser but it'll see the location header and redirect anyway.

 

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

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