php-uv
php-uv copied to clipboard
Best way to download large files using php-uv
Hi, What will be the best way to download a large file over tcp using php-uv? Thanks. Best Regards, Jim
what is the purpose for this?
maybe combination of uv_read_start
and uv_fs_open
i think.
Basically, decreasing function calls is the best way to improve PHP performance. so I should provide some functions which likes file_get_contents
.
I didn't try to download a large file with php-uv yet. so it may contains some bugs regarding buffers.
One use case is to download files in parallel and keep track of their progress. Yeah, so an async version of file_get_contents will be great.