[FX.php List] Forcing a browser to download a text file

Alex Gates alex at gandrpublishing.com
Sat Jul 14 16:34:36 MDT 2007


Hi Bob-

I've never tried this before - but a google search brought me to this:

http://www.thescripts.com/forum/thread475396.html

Whatever you end up using, make sure to test it on multiple browsers.

If nothing else, why not just instruct to right click and 'save as..' ?

Alex

Bob Patin wrote:
> How do I force a browser to download a text file rather than to display 
> it in the browser? I've written an upload script for a client so that 
> they can upload text files, but when I click on the links for the 
> uploaded files, they display rather than download.
> 
> Thanks,
> 
> Bob Patin
> Longterm Solutions
> bob at longtermsolutions.com
> 615-333-6858
> http://www.longtermsolutions.com
> 
>   CONTACT US VIA INSTANT MESSAGING:
>      AIM or iChat: longterm1954
>      Yahoo: longterm_solutions
>      MSN: tech at longtermsolutions.com
>      ICQ: 159333060
> 
> 
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
> 


More information about the FX.php_List mailing list