HttpResponse::setFile
(PECL pecl_http >= 0.10.0)
HttpResponse::setFile — Set file
Descrierea
static
bool HttpResponse::setFile
( string
$file
)Set the file to be sent.
Notă: ETag și Last-Modified calculate sau definite anterior vor fi recalculate sau redefinite.
Parametri
-
file -
the path to the file to send
Valorile întoarse
Întoarce valoarea TRUE în cazul
succesului sau FALSE în cazul eșecului.
Vedeți de asemenea
- 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.
