Re: Re: php_copy_file

From: Date: Fri, 15 Mar 2002 20:47:02 +0000
Subject: Re: Re: php_copy_file
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-81296@lists.php.net to get a copy of this message
> Howzat? you da man ! i owe you a beer if ever we meet.. "Wez Furlong" <wez@thebrainroom.com> wrote in message news:emaildo3c9251a347fe0.20020315195515.71332@thebrainroom.com... > Well, we have this: > > php_stream_copy_to_stream(srcstream, deststream, maxlen) > > that does that kind of thing :-) > If maxlen is 0 it copies until EOF. > It has some sense to use mmap when the source is a plain file too. > > Howzat? > > --Wez. > > > On 16/03/02, "l0t3k" <cshmoove@hotmail.com> wrote: > > Wez, > > i keep forgetting to ask you to add a "standard" stream copy function > > (perhaps using a configurable buffer). that way, i can write me a simple > > streamer by fopening my favorite MP3 and copying it to a socket <g> > > > > > > "Wez Furlong" <wez@thebrainroom.com> wrote in message > > > > news:emaildo3c9234a743478.20020315175135.71302@thebrainroom.com... > > > Any objections to stream enabling the php_copy_file function; > > > this will allow copying to/from anything that can be accessed > > > by the stream "fopen" wrappers? > > > > > > --Wez. > > > > > > > > > > > -- > > PHP Development Mailing List <http://www.php.net/> > > To unsubscribe, visit: http://www.php.net/unsub.php > > >

« previous php.dev (#81296) next »