leaving the bottom for reference and description of the problem. I am
also adding comp.lang.php as this is all done in php and there is a
remote possiblity that I have to do something else in php.
What is sent from php is as follows:
Headers (done with header calls):
Content-type: application/vnd.ms-excel
Content-Disposition: attachment; filename=foo.xls
Pragma: no-cache
Expires: 0
followed by:
<center><table border=1px><caption><h4>The Title</h4></caption>
<th>First Column</th><th>Second Column</th><th>Third Column</th>
<tr><td>1</td><td>2</td><td>3</td></tr>
<tr><td>4</td><td>5</td><td>6</td></tr></table>
These are sent via an echo statement in php.
I have a sample app www.sheldonlg.com/excel/excel.php
This sample app works fine in IE6, IE7, and FF. My problem is that on
the actual app, which is behind a firewall accessible only over VPN, I
get the errors listed in the original post (below) for IE6 and IE7. FF
is perfect.
Does anyone have any ideas on how to track down this bug? I am looking
for an approach. (A solution would be even better :-), but that is like
asking for the moon).
sheldonlg wrote:
I have an app where I create an Excel file. I am queried whether I want
to save it or open it. In FF this works perfectly for either saving or
opening the file. It does not work at all in Internet Explorer.
In IE6, I get
Choosing Save:
Internet Explorer cannot download ......stuff from the_url
Internet Explorer was not able to open this site. The requested site is
either unavailable or cannot be found. Please try again later.
Choosing Open:
Could not open https://the_url?the_parameters
clicking OK then says that it could not access this file and that there
were several reasons like file name or path does not exist; the file is
being used by another program; the workbook trying to save is the same
name as the currently open workbook.
In IE7 there is a different, immediate, failure without even getting to
the query for open or save. It says:
Internet Explorer cannot download the_generating_page from the_base_url.
Internet Explorer was not able to open this internet site. The
requested site is either unavailable or cannot be found. Please try
again later.
This works fine in Firefox. There is nothing open in Excel other than
this application trying to do its thing. Also, that script that it says
it cannot open does exist (obviously, since it works in FF).