ext-uv/examples/sendfile.php

8 lines
186 B
PHP
Raw Permalink Normal View History

2012-06-23 07:18:38 +02:00
<?php
2020-02-15 22:36:03 +01:00
uv_fs_open(uv_default_loop(), __FILE__, UV::O_RDONLY, 0, function($read_fd) {
uv_fs_sendfile(uv_default_loop(), STDOUT, $read_fd, 0, 6, function($result) { });
2012-06-23 07:18:38 +02:00
});
uv_run();