PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

HttpResponse::setContentType> <HttpResponse::setCacheControl
Last updated: Fri, 10 Oct 2008

view this page in

HttpResponse::setContentDisposition

(PECL pecl_http:0.10.0-1.5.5)

HttpResponse::setContentDispositioncontent disposition を設定する

説明

static bool HttpResponse::setContentDisposition ( string $filename [, bool $inline = FALSE ] )

Content-Disposition を設定します。 Content-Disposition ヘッダは、 実際に送信するデータがファイルなどであり、それをクライアント/ユーザに "保存" させたい (ブラウザのポップアップ "名前を付けて保存..." を出させたい) 場合に便利です。

パラメータ

filename

"名前を付けて保存..." ダイアログで表示するファイル名。

inline

これを true に設定し、かつユーザエージェントがその content type の処理方法を知っている場合は、ポップアップウィンドウが表示されません。

返り値

成功した場合に TRUE を、失敗した場合に FALSE を返します。



add a note add a note User Contributed Notes
HttpResponse::setContentDisposition
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites