views:

220

answers:

4

hey

i made a script that uploads files to different servers using php curl and the problem is that it eats all my upload bandwith and my apache does not respond as i would like.

the call is made from the php-cli and can not use any apache bandwith limiting bandwith

thanks in advance

A: 

apache don't have any bandwidth limits. it's your network bandwidth limit. consider not to spam other sites, and your apache would always respond quickly

Col. Shrapnel
not spamming, just uploading files to file hosting websites
oh yeah. 24/7 uploading.
Col. Shrapnel
there are bandwith limiting mods like mod_bw
+1  A: 

Could you be a bit more specific? You could for example show us the code.

You could also log the bandwith you have been using and put constraints in your code.

Kris Van den Bergh
bandwith limiting can`t be done from the code
A: 

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

zaf
thanks for the idea. I think this will do the trick
A: 

hei bro u can used ajax curl upload/multi search on uncle googel : ajax curl upload/multi

matamu