Yeah, but the title of this thread says to download a TEXT FILE, not a Word
document.

No-one with any sense would ever download a Microsoft Word document off the
internet by choice, unless they had a serious amount of trust in the web
site owner, were browsing over a secure connection using SSL, and said
document was digitally signed with a PHP signature or similar. And even
then, you'd want to make sure your virus checker was switched on. This is
because Microsoft Word documents, like executables, CAN CARRY VIRUSES
(called Word Macros).

...and if you should _ever_ discover how to force someone to download
something against their will, then that of course would be highly
unethical...

Maybe I'm just missing the point here. Is it really TEXT documents you're
interested in, or something else? If it's text documents only, then my
original suggestion still stands. If it's something more sinister then
perhaps we should consider changing the thread title.

Jill



-----Original Message-----
From: FARRINGTON, RYAN [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 21, 2003 1:28 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Force a user to download a text file from a link


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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 21, 2003 3:51 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED]
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

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to