Welcome Guest, Not a member yet? Register   Sign In
Using Download Helper With Extremely Large Files
#13

[eluser]bardelot[/eluser]
Maybe you want to check the "connection_status()"
(http://phpfer.com/rn10re180.html)

That's what I'm using.
Code:
...
$stream = fopen($file_real, 'rb');
        
if ($stream === false) {
   show_404();
   die();
}
  
while(!feof($stream) && connection_status() == 0)
{
   print(fread($stream, $speed));
   flush();
   sleep(1);
}

fclose($stream);
...


Messages In This Thread
Using Download Helper With Extremely Large Files - by El Forum - 01-19-2008, 12:07 AM
Using Download Helper With Extremely Large Files - by El Forum - 01-19-2008, 12:26 AM
Using Download Helper With Extremely Large Files - by El Forum - 01-19-2008, 12:31 AM
Using Download Helper With Extremely Large Files - by El Forum - 01-19-2008, 02:14 AM
Using Download Helper With Extremely Large Files - by El Forum - 01-19-2008, 02:18 AM
Using Download Helper With Extremely Large Files - by El Forum - 01-19-2008, 02:25 AM
Using Download Helper With Extremely Large Files - by El Forum - 01-19-2008, 02:36 AM
Using Download Helper With Extremely Large Files - by El Forum - 01-19-2008, 02:43 AM
Using Download Helper With Extremely Large Files - by El Forum - 01-19-2008, 02:50 AM
Using Download Helper With Extremely Large Files - by El Forum - 01-19-2008, 03:03 AM
Using Download Helper With Extremely Large Files - by El Forum - 01-19-2008, 03:11 AM
Using Download Helper With Extremely Large Files - by El Forum - 01-19-2008, 03:15 AM
Using Download Helper With Extremely Large Files - by El Forum - 01-19-2008, 10:14 AM
Using Download Helper With Extremely Large Files - by El Forum - 12-09-2008, 05:08 AM
Using Download Helper With Extremely Large Files - by El Forum - 07-28-2011, 08:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB