HttpResponse::setFile
(PECL pecl_http >= 0.10.0)
HttpResponse::setFile — Set file
Descrizione
static
bool HttpResponse::setFile
( string
$file
)Set the file to be sent.
Nota: ETag e Last-Modified precedentemente calcolati o definiti saranno ricalcolati e ridefiniti.
Elenco dei parametri
-
file -
the path to the file to send
Valori restituiti
Restituisce TRUE in caso di successo, FALSE in caso di fallimento.
Vedere anche:
- 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.
