array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'swoole-server.sendfile.php', 1 => 'Swoole\\Server::sendfile', 2 => 'Send file to the connection.', ), 'up' => array ( 0 => 'class.swoole-server.php', 1 => 'Swoole\\Server', ), 'prev' => array ( 0 => 'swoole-server.send.php', 1 => 'Swoole\\Server::send', ), 'next' => array ( 0 => 'swoole-server.sendmessage.php', 1 => 'Swoole\\Server::sendMessage', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/swoole/swoole/server/sendfile.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Swoole\Server::sendfile

(PECL swoole >= 1.9.0)

Swoole\Server::sendfileSend file to the connection.

说明

public Swoole\Server::sendfile(int $fd, string $filename, int $offset = ?): bool

警告

本函数还未编写文档,仅有参数列表。

参数

fd

filename

offset

返回值