The HttpResponse
PHP Manual

HttpResponse::setFile

(PECL pecl_http:0.10.0-1.5.5)

HttpResponse::setFileSet file

Beschreibung

static bool HttpResponse::setFile ( string $file )

Set the file to be sent.

Hinweis: Bereits berechnete oder definierte ETag und Last-Modified Werte werden neu berechnet oder definiert.

Parameter-Liste

file

the path to the file to send

Rückgabewerte

Gibt bei Erfolg TRUE zurück, im Fehlerfall FALSE.

Siehe auch


The HttpResponse
PHP Manual