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

search for in the

http_send_content_type> <http_redirect
[edit] Last updated: Fri, 25 May 2012

view this page in

http_send_content_disposition

(PECL pecl_http >= 0.10.0)

http_send_content_dispositionContent-Disposition を送信する

説明

bool http_send_content_disposition ( string $filename [, bool $inline = false ] )

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

注意: この関数は、 http_send_data()http_send_file() そして http_send_stream() と組み合わせて使用することを想定しています。

パラメータ

filename

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

inline

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

返り値

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

参考



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

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