HttpResponse::setFile
(PECL pecl_http >= 0.10.0)
HttpResponse::setFile — Set 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.
Zobacz też:
- HttpResponse::getData() - Get data
- HttpResponse::setData() - Set data
- HttpResponse::getFile() - Get file
- HttpResponse::getStream() - Get Stream
- HttpResponse::setStream() - Set stream
There are no user contributed notes for this page.
