开发者

PHP cURL upload speed

开发者 https://www.devze.com 2022-12-26 00:11 出处:网络
I made a script that uploads files to different servers using PHP cURL and the problem is that it eats all my upload bandwidth and my Apache server开发者_StackOverflow中文版 does not respond as I woul

I made a script that uploads files to different servers using PHP cURL and the problem is that it eats all my upload bandwidth and my Apache server开发者_StackOverflow中文版 does not respond as I would like.

The call is made from the PHP-CLI and can not use any Apache bandwidth, limiting bandwidth.


Have you tried the CURLOPT_READFUNCTION option? Creating your own function for reading the data will allow you also to throttle the bandwidth.


Apache doesn't have any bandwidth limits. It's your network's bandwidth limit. Consider not to spam other sites, and your Apache server would always respond quickly.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号