Downloading a file
I am having trouble getting a file to download to work in Internet Explorer.
The site works fine in FireFox. The page retrieves the contents of a file
from a database and outputs the following
<?PHP
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=\"{$data['filename']}\"");
header("Content-Description: PHP Generated Data");
echo $data['file'];
?>
Where $data['filename'] is the name of the file as stored in the database
and $data['file'] is the contents of the file. The script used to download
the file is called view.php. As I mentioned, this works great in FireFox
but with Internet Explorer, I get the following error:
Internet Explorer cannot download view.php from www.yourdomain.com.
Internet Explorer was not able to open this Internet site. The requested
site is either unavailable or cannot be found. Please try again later.
Any help would be greatly appreciated.
Robbert
Relevant Pages
- Re: Windows Explorer is Not Responding - Help!
... "Art" wrote in message ... currently working on it) but in the meantime just download the Mozilla ... Firefox browser and that should stop the problem. ... Internet Explorer Browser, take note of your homepage in the address bar ... (microsoft.public.windows.vista.general) - Re: Unable to start Internet Explorer or Windows Explorer
... As you can not download these programs from the Internet, if your PC has CD read capabilities, go to another computer with CD-ROM burning capabilities. ... Copy the HOLD folder to the hdard drive of the infected machine, then install the programs in the HOLD folder and run them. ... CastleCops HiJackThis Forum ... will pop up saying "Internet Explorer has encountered a problem and must ... (microsoft.public.windows.inetexplorer.ie6.browser) - Re: mshtml.dll Error! (Win XP SP2)
... internet explorer executable is iexplore.exe. ... serious problem on your hands - you have a virus or severe spyware infection. ... You can download BHOcop, and view an introduction to it, ... I've tried EVERYTHING to fix this problem. ... (microsoft.public.windows.inetexplorer.ie6.browser) - Download Failure Problem in IE 6
... I am experiencing a strange Internet Explorer error on my desktop box that I ... occurring when I attempt to download a zip file ... This error has occurred on multiple web sites, ... Error message text: “Internet Explorer cannot download ... (microsoft.public.windows.inetexplorer.ie6.browser) - Re: installing latest Critical update on Windows XP
... > describe why this download is deemed necesary. ... > the ADODB.Stream object is hosted in Internet Explorer. ... > to be loaded or to be saved to the hard disk may use the ... > different methods to provide this functionality. ... (microsoft.public.windowsxp.security_admin) |
|