Posted by Janwillem Borleffs on 01/09/08 12:40
sunnyboyGuo@gmail.com schreef:
> when there occured some error, it will send headers automatically, so
> i can not use header() to send expected header information.
> it will prompt message like this:
> <br />
> <b>Warning</b>: Cannot modify header information - headers already
> sent by (output started at /var/www/tpms.php:155) in <b>/var/www/
> tpms.php</b> on line <b>25</b><br />
>
> can i control it not send automatically, and to send myself header
> information?
>
You can use the PHP4 method to surpress the error (with the @-sign) or
alter the error_reporting setting (ini file or through the
error_reporting function) to E_FATAL (or one of the other possible
values/combinations; see http://www.php.net/error_reporting for details).
You can also disable the display_errors directive in your php.ini file.
JW
[Back to original message]
|