Re: Large Memory Problem
| From: | Christian Reiniger | Date: | Mon, 07 May 2001 18:46:13 +0000 |
| Subject: | Re: Large Memory Problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-51796@lists.php.net to get a copy of this message | ||
On Monday 07 May 2001 16:17, Natasha wrote:
> Lemme rephrase the question here :
>
> How can I use the socket functions to grab large
> amounts of data ? which may not be in the memory
> limit, and doing this without changing the php.ini
>
> how would you solve that ?
(1) Best way: Use wget (as others already mentioned)
(2) General way to avoid memory overflow on such a thing: Stream the data
to disk, i.e. read n bytes, write 'em to disk, repeat.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Error 032: Recursion error - see error 032