Re: Fastest way to read from an url?
| From: | Stefan Rusterholz | Date: | Wed, 23 Jan 2002 16:09:32 +0000 |
| Subject: | Re: Fastest way to read from an url? | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-81705@lists.php.net to get a copy of this message | ||
> Nick Wilson wrote:
> * and then Stefan Rusterholz blurted....
> > Yes, I *have* to use php.
>
> Hmm... Then I can't see any way to speed it up as presumably the php
> proccessing is slowing it all down. I hope someone can be of more help
> as it's an interesting thread.
No, it's definitifly *not* the php processing which is slowing it down.
Processing 15 files of totally 25MB from the remote host takes approximatly
2 minutes while processing exactly the same files from localhost takes
approximatly 10s. So it's definitfly the slow fetching of the data from the
remote host which slows the script down.
What I could think of is that PHP has something built-in thought as feature:
that php automatically slows down remote connections to not "kill" the
remote server by slurping everything with max. speed (just like the
UA-Robots modul extending the libwww module for Perl). But in my case it's
more important that files are slurped fast when needed even at the price
that the remote servers resources are all used for the download.
best regards
Stefan Rusterholz