HTTP_Download::setLastModified (Previous) (Next) HTTP_Download::guessContentType

View this page in Last updated: Sun, 05 Oct 2008
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

HTTP_Download::setContentDisposition()

HTTP_Download::setContentDisposition() --  Content-disposition をセットする

説明

ダウンロードするものの Content-disposition をセットします。

"Content-Disposition" は HTTP の仕様ではありませんが、 ほとんどのブラウザでこのヘッダをサポートしていますので、 MIME 標準から借りてきました。 このような感じです: "Content-Disposition: attachment; filename=example.tgz".

パラメータ

  • string [$disposition = HTTP_DOWNLOAD_ATTACHMENT] - ダウンロードするもの ('attachment' あるいは 'inline') のディスポジションを指定します。

  • string [$file_name = null] - ブラウザのダウンロードウィンドウで表示されるファイル名を 指定します。

注意

この関数は、スタティックにコールする ことはできません。

HTTP_Download::setLastModified (Previous) (Next) HTTP_Download::guessContentType

Download Documentation Last updated: Sun, 05 Oct 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.