RE: [PHP] content disposition and internet exploder
| From: | Jason Murray | Date: | Sun, 02 Dec 2001 22:08:18 +0000 |
| Subject: | RE: [PHP] content disposition and internet exploder | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-76355@lists.php.net to get a copy of this message | ||
> 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
jasonm@melbourneit.com.au
Web Developer, Melbourne IT
"Work now, freak later!"