|
Posted by John on 09/26/01 11:39
Hi,
I'm using php to provide Excel files stored in a database to web users.
The important part of my code is this:
$buffer = mysql_result($result, 0, 'survey');
header("Content-type: application/excel");
header("Content-disposition: attachment; filename=test.xls");
echo($buffer);
This works perfectly with firefox, but not at all with IE.
I just get the pop-up "Internet Explorer cannot download viewdoc.php
from <site_name>. Internet Explorer wa snot able to open this Internet
site. The requested site is eitherunavailable or cannot be found. Please
try again later.
Any suggestions?
BTW, if i change the content type to application/vnd.ms-excel, all it
does is give me a security warning before providing the same error message.
John
[Back to original message]
|