The HttpResponse
PHP Manual

HttpResponse::setFile

(PECL pecl_http:0.10.0-1.5.5)

HttpResponse::setFileSet file

Opis

static bool HttpResponse::setFile ( string $file )

Set the file to be sent.

Informacja: Wcześniej obliczony lub zdefiniowany ETag i Last-Modified zostanie obliczony ponownie i zdefiniowany.

Parametry

file

the path to the file to send

Zwracane wartości

Zwraca TRUE w przypadku powodzenia, FALSE w przypadku błędu.

Patrz także


The HttpResponse
PHP Manual