Page 1 of 1

why does downloading timeout in this script?

Posted: Mon Jun 09, 2008 9:34 am
by keyvan1
hi,
i have a php proxy script and i have installed it on my website
when downloading through proxy it downloads the first 6 to 7 mb of data.if the file is greater than 7 mb it timesout what can i do for that
ofcourse i my connection speed is 128 kb
but can the code be changed so that it does not timeout?
i have attached the code

Re: why does downloading timeout in this script?

Posted: Wed Jun 11, 2008 10:12 am
by nowaydown1
My guess is that you're blowing out the PHP memory limit (From line 857):

Code: Select all

 
$_response_body .= $data;
 
I believe the default memory_limit is 8M. Concatenating the file contents into a string like that is going to eat up memory like crazy.