HttpResponse::setFile

(PECL pecl_http >= 0.10.0)

HttpResponse::setFileSet 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

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top