php8.5
Home/ Manual/ http / response/ Swoole\Http\Response::sendfile

Swoole\Http\Response::sendfile

PHP function Edit on GitHub ✎

(PECL swoole >= 1.9.0)

Send file through the HTTP response.

Description

Swoole\Http\Response::sendfile(string $filename, [int $offset]): ReturnType

Send file through the HTTP response.

Parameters

filename
offset

Return Values

Source: reference/swoole/swoole/http/response/sendfile.xml · from the official PHP manual (php/doc-en)