Re: headers already sent

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You have some content at line 2 in file trial.php.
Check if there is a space (or a session command) at that line.

--
Jorge Oliveira
» Cloreto.com



matthew perry wrote:

When I insert the following header:

     header ("Content-type: application/vnd.ms-excel");
     header ("Content-Disposition: attachment" );

I get the messages:

*Warning*: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\trial.php:2) in *C:\Program Files\Apache Group\Apache2\htdocs\trial.php* on line *3*

*Warning*: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\trial.php:2) in *C:\Program Files\Apache Group\Apache2\htdocs\trial.php* on line *4


*I get similar messages when I use my web host. How do I use these headers correctly?


Matt





-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux