Why 3 lines..?
Re: Plugin servers / getting plugins to a system
« Reply #30, on October 19th, 2011, 11:25 AM »
loadSource('Subs-Package');
$code = fetch_web_data($url, '', false, 0, array('Range' => 'bytes=0-1536'));loadSource('Class-WebGet');
$wget = new weweb($url);
$wget->setHeader('Range', 'bytes=0-1536');
$code = $wget->get();AFAIK, the only point is to allow for more simultaneous downloads off a single server by reusing earlier connections
Oh, and can you look into reusing weget for AeMe as well...?
| 1. | Just consider this for a moment. We're talking JPG. It's not layered, not transparent, doesn't have multiple 'images' inside, and yet we have 20KB of stuff before we get to set out the *size* of the image. Funnily enough I can tell you exactly what tools cause that, and one company in particular... :whistle: I'll leave you to guess which company. |
maybe you should restore it and use it as a fallback for when $size isn't set at the end of the function...?
(Or we could re-try with a 128KB buffer. But then it won't take other files into account -- e.g. slightly broken PNG and GIF. Not that imagesize can magically get their sizes either.)