RE: [PHP-WIN] Force a user to download a text file from a link
| From: | Jill dot Ramonsky at Aculab dot com | Date: | Fri, 21 Feb 2003 09:50:43 +0000 |
| Subject: | RE: [PHP-WIN] Force a user to download a text file from a link | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-18650@lists.php.net to get a copy of this message | ||
Far be it from me to question the wisdom of tweaking the headers, but why do
you need them at all?
Why can't you just do:
<a href ="filename.txt">click here</a>
which, so far as I can see, will load said text page into the user's browser
window as soon as they click on the link. If the user then wants to save it,
they can use the browser's Save As function.
Too easy?
Jill
-----Original Message-----
From: FARRINGTON, RYAN [mailto:ryan.farrington@cingular.com]
Sent: Thursday, February 20, 2003 2:22 PM
To: 'George Pitcher'; Matt Babineau; php-windows@lists.php.net
Subject: RE: [PHP-WIN] Force a user to download a text file from a link
you could also try this:
or this
or this