开发者

PHP cURL upload speed

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜