xref: /php-uv/examples/sendfile.php (revision 99312394)
1<?php
2
3uv_fs_open(uv_default_loop(), __FILE__, UV::O_RDONLY, 0, function($read_fd) {
4    uv_fs_sendfile(uv_default_loop(), STDOUT, $read_fd, 0, 6, function($result) { });
5});
6
7uv_run();
8