http_send_content_disposition
(PECL pecl_http:0.10.0-1.5.5)
http_send_content_disposition — Send 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를 반환합니다.