You are here: Re: file download through php « PHP Programming Language « IT news, forums, messages
Re: file download through php

Posted by aljosa.mohorovic@gmail.com on 04/03/06 11:28

"IE also ignores the suggested filename in the Content-disposition
header" and also Safari will not properly display non latin1 charsets.
my solution for download link:
URL: http://www.example.com/download.php/$file_id/$file_name
1. download.php can be replaced using mod_rewrite into something more
readable
2. $file_id can be location of file or anything else
3. $file_name is used only to indicate filename to browser and can be
string with any character and IE,Firefox and Safari will display
properly filename for download

and about IE strange problem? would like to know how to fix it but
because i have no time I've gone with "inline" instead "attachment" for
Content-Disposition.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация