Join 2,000+ others and never miss out on new tips, tutorials, and more.
pecl install openswoole-4.11.1
The file descriptor of the client to send data to
The path of file to send, if it does not exist
false will be returned
Specify the file offset, you can send data from a certain position of the file, default is 0 which means the whole of the file
Specify the length of the file to send, default is to send the whole of the file
If success, it returns 'true', otherwise it returns