Page 2 of 2

Re: Hide Download file URL

Posted: Wed Nov 23, 2011 3:35 pm
by social_experiment
Xeolex wrote:anyone knows whats the problem??
and what can i do to overcome this error??
The file is clearly to big, larger than 128MB, you have to either use a smaller file or update your php.ini to accomodate the larger file
http://php.net/manual/en/ini.core.php

Re: Hide Download file URL

Posted: Thu Nov 24, 2011 1:29 am
by Xeolex
900 mb

i have use some other download manager script..
it was able to download the same file, without changing the ini file.

Re: Hide Download file URL

Posted: Thu Nov 24, 2011 1:48 am
by twinedev
First, if you use another file that works fine, why this thread??

It most likely needs to chunk out the data to the browser instead of reading in the whole file, try the following instead of the readfile($path); line:

Code: Select all

$handle = fopen($path,'rb');
while (!feof($handle)) {
  echo fread($handle, 8192);
}
fclose($handle);
Of course then you also have the issue of how long the download takes. You may max out the maximum execution time.

-Greg

Re: Hide Download file URL

Posted: Thu Nov 24, 2011 9:24 am
by Xeolex
First, if you use another file that works fine, why this thread??
the other script is bit complicated and i cant modify it to my needs..

thank for the code i will check it out..

btw how is others(download manager scripts) doing this?