NYCPHP Meetup

NYPHP.org

[nycphp-talk] Force download

Dan Horning lists at danhorning.com
Tue Sep 12 21:53:42 EDT 2006


it may not be ideal but using MOD_rewrite to solve this issue just might 
be the way to solve it.

i've got notes that i'll add when i get home - currently i'm sitting in 
the starbucks next to penn station.

Michael Sims wrote:
> On Tuesday 12 September 2006 2:29 pm, Nathan Lavertue wrote:
>
>   
>> Any reason why the following script wouldn't force download the file
>> in question with the appropiate name in all situations? Works in a
>> few browsers, but, not while using the Internet Browser on the PSP.
>> Tries to save the file 'download.php' instead of the actual video file.
>>     
>
> Some browsers continue, in 2006, to ignore all hints about what the 
> appropriate filename of a downloaded file should be.  Try hitting the 
> download URL like this:
>
> http://yoururl.com/download.php?foo=MAQ09718.MP4
>
> The browser may well be stupid enough to just grab the last part of the URL 
> and use that as the filename of the downloaded file.
>
> Michael Sims
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>   


-- 
Dan Horning - danhorning.com
American Digital Services - americandigitalservices.com
Where you are only limited by imagination.
1-866-493-4218 (direct) / 1-800-863-3854 (main number)




More information about the talk mailing list