note 60583 deleted from function.header by betz
| From: | betz@php.net | Date: | Wed, 11 Jan 2006 16:48:02 +0000 |
| Subject: | note 60583 deleted from function.header by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-101574@lists.php.net to get a copy of this message | ||
Note Submitter: gramon at uio dot santoscmi dot com
----
I have a php script that creates an excel file from information stored in our data base and the
users can download it dinamically (using Header function). At the begining everything was ok, but
after running windows update (WinXP) this script fail. I tried everything, changing headers,
disabling windows firewall, setting IE security to LOW, everything!!! but not work in some PCs. If
someone know what is going on please help me.
//******* headers ******
Header('Content-Transfer-Encoding: binary');
Header('Content-Disposition: attachment; filename="' . $destino .
'"');
Header("Content-type: application/vnd.ms-excel");
readfile("$location");
unlink ("$location");