> I tried using the code below to send the output to an Excel sheet in my
> browser by changing the header to "Content-type:
application/vnd.ms-excel".
> However I only see normal text in a browser. Excel is not launched. What
is
> wrong??
>
> --------------------------------------------------------------
> <?php
>    Header ("Content-type: application/ms-excel");
>    Header ("Content-type: application/vnd.ms-excel");

Two different Content-type: headers?  That seems pretty broken to me...

But I could be just too narrow-minded.

Try uploading an .xls file, and surfing to it to be sure you get the results
you want.

Then use:
telnet yourhost.com 80
GET /whatever.xls HTTP/1.0


(hit return twice)
from a Un*x box to see what headers are being sent that make it work.

(Or find a way to make Windows give you an actual command-line telnet
session without launching a GUI...   Grrrr.)

Send all those headers.

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm



-- 
PHP General 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