Hi,

you can't have ANY output whatsoever before adding a
header. Even whitespaces before the opening <?php-tag
are not possible. You also could turn "output_buffering"
"ON" in your php.ini. But your ISP has to have them same
setting and I don't know about disadvantages. So go
with the first solution.

Johannes

"Sharmad Naik" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> When ever i add headers in my pages i get the following errors
> Can anybody tell me what's wrong?
>
> Warning: Cannot add header information - headers already sent by (output
started
>  at /usr/src/apache_1.3.14/web/server/apache/htdocs/searchdisplay.php:4)
in /usr
> /src/apache_1.3.14/web/server/apache/htdocs/searchdisplay.php on line 6
>
> -Sharmad
> --
> The secret of the universe is @*&!'^#+ NO CARRIER
> __    _  _      _  _
> |_|_||_||_||\/||_|| \
> _|| || || \|  || ||_/
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to