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

Posted by John Dunlop on 03/18/06 14:57

NC:

> aljosa.mohorovic@gmail.com wrote:
>
> > header('Content-Disposition: attachment');
>
> I think you're supposed to specify a file name here:

RFC2183 says the filename parameter is optional, though whether that
has any bearing on what you are supposed to include in the header
fields of an HTTP message is another question.

> > header('Accept-Charset: UTF-8');
>
> I am not sure "Accept-Charset:" header is appropriate when serving
> binary files...

Since Accept-Charset is defined only as a request-header, it is
meaningless in a response (unless there is a private agreement which
assigns it a meaning).

--
Jock

 

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

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