The HttpResponse
PHP Manual

HttpResponse::setFile

(PECL pecl_http:0.10.0-1.5.5)

HttpResponse::setFileSet file

Описание

static bool HttpResponse::setFile ( string $file )

Set the file to be sent.

Замечание: Previously calculated or defined ETag and Last-Modified will be recalculated and redefined.

Список параметров

file

the path to the file to send

Возвращаемые значения

Возвращает TRUE в случае успешного завершения или FALSE в случае возникновения ошибки.

Смотрите также


The HttpResponse
PHP Manual