RE: [PHP-WIN] Force a user to download a text file from a link
| From: | FARRINGTON, RYAN | Date: | Fri, 21 Feb 2003 13:27: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-18652@lists.php.net to get a copy of this message | ||
that requires some form of trust in the user... I experience too many stupid
people in what I do on a day to day basis and it is just easier if it forces
a download...
typical user experience: I were a user and there was a link to a word
document that i wanted to edit. If I clicked on the link [and I had word
installed =)] it would open the file in my browser window and allow me to
edit it... but there is not toolbar for saving.. where are all my formatting
tools... oh no I've gotta call the person that put the link out because I
can't figure out what to do... help me ... BLAH!!! I hate people like that
so I force the download and they edit it locally and use the same page to
re-upload it.. it is just easier =)
-----Original Message-----
From: Jill.Ramonsky@Aculab.com [mailto:Jill.Ramonsky@Aculab.com]
Sent: Friday, February 21, 2003 3:51 AM
To: ryan.farrington@cingular.com; george.pitcher@ingenta.com;
matt@criticalcode.com; php-windows@lists.php.net
Subject: RE: [PHP-WIN] Force a user to download a text file from a link
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