Re: HTTP class
| From: | Wolfram Kriesing | Date: | Fri, 08 Feb 2002 13:51:31 +0000 |
| Subject: | Re: HTTP class | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-797@lists.php.net to get a copy of this message | ||
> On Fri, 08 Feb 2002 11:25:25 +0100, Drago Bokal wrote:
> >I would like to download a text file (given an URL) within a PHP
> > function and possibly store it into a string. Do I have to play
> > with all that HTTP protocol stuff or does there exist any PHP
> > function or PEAR class that would do the job for me?
i have a class, which might fit in pear and does stuff like copying
files, getSize, etc.
http://www.kriesing.de/showsource.php?domain=wolfram.kriesing.de&file=/libs/php/File/Common.php
simply use: File::copy( http://from.where , to.local.file );
shall i commit it?
--
Wolfram