Join 4,000+ others and never miss out on new tips, tutorials, and more.
Latest version:
pecl install openswoole-22.1.2 | composer require openswoole/core:22.1.5
<?php OpenSwoole\Client->sendfile(string $filename, $offset = 0, $length = -1)
The location of the file to send.
Offset and start point to send the file.
The length of the data to send.
Send file to the remote socket.
This is a wrapper of the Linux sendfile system call.