Welcome Guest, Not a member yet? Register   Sign In
set a redirect with set_header?
#6

[eluser]NogDog[/eluser]
Any PHP function that sets/modifies headers must be executed before anything is output. That "anything" includes any text - even spaces or newlines - not within <?php...?> tags. Make sure that none of the files involved in this processing has any explicit output (echo, print, etc.) or accidental output. One "gotcha" can be any included files that have a newline after the closing "?>". It is therefore recommended that you omit the closing "?>" in all class definition and other include files for this very reason.


Messages In This Thread
set a redirect with set_header? - by El Forum - 04-10-2009, 08:14 PM
set a redirect with set_header? - by El Forum - 04-11-2009, 12:11 AM
set a redirect with set_header? - by El Forum - 04-11-2009, 12:18 AM
set a redirect with set_header? - by El Forum - 04-11-2009, 11:05 AM
set a redirect with set_header? - by El Forum - 04-11-2009, 11:18 AM
set a redirect with set_header? - by El Forum - 04-11-2009, 11:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB