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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php