AW: AW: [PEAR-DEV] [Call for Votes] HTTP_Download
| From: | Stephan Schmidt | Date: | Thu, 02 Oct 2003 09:30:47 +0000 |
| Subject: | AW: AW: [PEAR-DEV] [Call for Votes] HTTP_Download | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-22303@lists.php.net to get a copy of this message | ||
Hi,
> Well I don't think that pointers *instead* of a filename is best,
> but it will probably be implemented if you would explicate a few
> reasons for that. ATM it would make the class much more
> complicated and lapse Range support.
First off, of course I meant that both ways should be possible. Now for a
simple example. Let's say you are dynamically creating a the downloadable
file, you most probably have a filepointer to which the data is written.
Then you close the filepointer and hand over the filename. HTTP_Download is
now opening the file again.
So why not just rewind($fp) and hand this over to HTTP_Download.
Stephan