RE: [PHP] content disposition and internet exploder
I am attempting to allow users to download csv files that are created dynamically from a database. In order to do so I use: header( Content-Disposition: attachment, filename=query.csv); [snip] Has anyone had success in getting IE to use the correct filename when downloading dynamically generated files? I just use: Header(Content-disposition: filename=.$filename); ... ie, no attachment. Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT Work now, freak later! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] content disposition and internet exploder
You could just trick it with a URL like: http://your.domain.com/script.php/query.csv IE will think your script is called query.csv while Apache is smart enough to run script.php. -Rasmus On Sun, 2 Dec 2001, Fred wrote: I am attempting to allow users to download csv files that are created dynamically from a database. In order to do so I use: header( Content-Disposition: attachment, filename=query.csv); This works fine in NS, but not in IE, as it always attempts to save the file using the script name instead of the filename in the header. I have read numerous posts and articles on MS site as well as this list about bugs in MS 4.01 5.0 and 5.5, but each article claims that the problem is fixed with SP2 etc. I have installed each of the service packs and have not been able to get this to work correclty on any of them. Has anyone had success in getting IE to use the correct filename when downloading dynamically generated files? Fred -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] content disposition and internet exploder
LOL Of course it worked. Open Source outwits MS yet again. Fred Rasmus Lerdorf [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... You could just trick it with a URL like: http://your.domain.com/script.php/query.csv IE will think your script is called query.csv while Apache is smart enough to run script.php. -Rasmus On Sun, 2 Dec 2001, Fred wrote: I am attempting to allow users to download csv files that are created dynamically from a database. In order to do so I use: header( Content-Disposition: attachment, filename=query.csv); This works fine in NS, but not in IE, as it always attempts to save the file using the script name instead of the filename in the header. I have read numerous posts and articles on MS site as well as this list about bugs in MS 4.01 5.0 and 5.5, but each article claims that the problem is fixed with SP2 etc. I have installed each of the service packs and have not been able to get this to work correclty on any of them. Has anyone had success in getting IE to use the correct filename when downloading dynamically generated files? Fred -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] content disposition and internet exploder
That works fine in IE but does not work in NS, undoubtedly because it does not conform to the RFC. Fred Jason Murray [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am attempting to allow users to download csv files that are created dynamically from a database. In order to do so I use: header( Content-Disposition: attachment, filename=query.csv); [snip] Has anyone had success in getting IE to use the correct filename when downloading dynamically generated files? I just use: Header(Content-disposition: filename=.$filename); ... ie, no attachment. Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT Work now, freak later! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]