update : 2015.11.03
php.shukuma.com

검색:
 
 
Send Content-Disposition

http_send_content_disposition

(PECL pecl_http >= 0.10.0)

http_send_content_dispositionSend Content-Disposition

설명

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

Send the Content-Disposition. 데이터가 파일 등에서 전송해야 할 때 Content-Disposition 헤더가 매우 유용합니다. 반드시 클라이언트/사용자에 의해 "저장"됩니다. (브라우저의 "다른 이름으로 저장" 창을 띄웁니다)

Note: 이 함수는 다음 함수와 함께 사용해야 합니다: http_send_data(), http_seld_file() 그리고 http_send_stream().

인수

filename

the file name the "Save as..." dialog should display

inline

if set to TRUE and the user agent knows how to handle the content type, it will probably not cause the popup window to be shown

반환값

성공 시 TRUE를, 실패 시 FALSE를 반환합니다.

참고