Re: headers
| From: | Johannes Janson | Date: | Sat, 07 Apr 2001 08:56:42 +0000 |
| Subject: | Re: headers | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-8334@lists.php.net to get a copy of this message | ||
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" <sharmad@goatelecom.com> schrieb im Newsbeitrag
news:20010407124532.A1021@goatelecom.com...
> 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: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>