Page 1 of 1

header function

Posted: Sat Aug 29, 2009 2:42 am
by ranjitbd
i want to use some echo statements before using header function
so what to do
thnx in advance

Re: header function

Posted: Sat Aug 29, 2009 6:34 am
by JAB Creations
Then just do it; it can be useful for debugging.

Keep in mind whenever there is any client output before PHP sends out headers then the headers will not be sent.

Re: header function

Posted: Sat Aug 29, 2009 6:50 am
by Darhazer
you can use output buffering, but better just do not echo anything before the headers
Or if you need it for debugging, you can log to a file.