|
Posted by sunnyboyGuo on 01/10/08 03:10
On Jan 9, 9:14 pm, Janwillem Borleffs <j...@jwscripts.com> wrote:
> sunnyboy...@gmail.com schreef:
>
> > maybe i did not describe clearly. i want to surpress php to send
> > header automaticlly, but send
> > header by myself.
> > when i use error_reporting(0) to surpress errors, it can surpress
> > them, but the function call header(HTTP/1.1 400 Not FOUND) didn't
> > rewrite the header. i think php may send header before the call, but
> > its warning was surpressed.
>
> If you surpress the error, PHP doesn't send anything, unless there is
> some whitespace or other characters printed by the script.
>
> Try sending the header prior to the call and see what it produces.
>
> JW
Hi JW,
thank you very much. i called echo() before the header(). now it
work well after removing it.
Best regards,
Tony
Navigation:
[Reply to this message]
|