note 37575 added to function.header
| From: | david at bridgespublishing dot com | Date: | Thu, 20 Nov 2003 02:44:24 +0000 |
| Subject: | note 37575 added to function.header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-60656@lists.php.net to get a copy of this message | ||
I utterly failed to achieve a file download with IE6 using headers, even with all of the hints and
suggestions on this page. Finally, I used a different approach, that worked:
<?
$filedata = "one,two,three,four";
file_put_contents("test.csv", $filedata);
header("Location: test.csv");
?>
----
Manual Page -- http://www.php.net/manual/en/function.header.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+37575
Delete -- http://master.php.net/manage/user-notes.php?action=delete+37575&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+37575&report=yes
Search -- http://master.php.net/manage/user-notes.php