|
Posted by Janwillem Borleffs on 01/09/08 13:14
sunnyboyGuo@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
Navigation:
[Reply to this message]
|