Exporting Data as CSV - IE6/HTTPS Problem?

From: Date: Thu, 04 Dec 2003 21:55:45 +0000
Subject: Exporting Data as CSV - IE6/HTTPS Problem?
Groups: php.general 
Request: Send a blank email to php-general+get-171900@lists.php.net to get a copy of this message
All: I have the following php code for downloading a file to the user via the browser: // Open csv file. $fp = fopen($fileName, "r"); // Set file name. $dwnldName = "report"; // Set headers for csv download. header("Content-Type:application/csv"); header("Content-Disposition:attachment; filename=$dwnldName.csv"); header("Content-Transfer-Encoding:binary"); // Put it to the browser. fpassthru($fp); Works great in the Mozilla browser over both http and https. Works great in IE 6 over http, but for some reason over https, my filename mysteriously turns into a mangled version of my page url, and the file cannot (obviously) be found to be downloaded. Is it something I'm doing, or is this an IE problem? And if so, are there any work-arounds? Thanks in advance, Geoff Thompson

« previous php.general (#171900) next »