Cross Browser CSV Download
Posted on 2011-09-21
I need your magnificent help with another problem I am having. I have set up a site under SSL and am trying to create a dynamic CSV file generated from the contents of the database that can be downloaded when the user clicks on a link.
As of now, I have it set up so that the link redirects to a new PHP page whereupon I am sending the headers and accessing the database to create the CSV file. This works fine in Firefox, Chrome and Safari. However in IE I get the following message:
Internet Explorer cannot download download/ from mysite.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.
I have tried various methods to get around this situation without success. I would like to know if any of you experts have code that will work across all browser platforms to accomplish what I am trying to do.