Forum und email

HttpResponse::setFile

(PECL pecl_http:0.10.0-1.5.5)

HttpResponse::setFile — Set file

설명

static bool HttpResponse::setFile ( string $file )

Set the file to be sent.

Note: 이전에 계산했거나 정의한 ETagLast-Modified은 다시 계산되어 적용될 수 있습니다.

매개변수

file

the path to the file to send

반환값

성공할 경우 TRUE를, 실패할 경우 FALSE를 반환합니다.