Re: Keeping file pointers open after script end
| From: | Robert Cummings | Date: | Sat, 09 Jun 2007 21:17:50 +0000 |
| Subject: | Re: Keeping file pointers open after script end | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-256477@lists.php.net to get a copy of this message | ||
On Sat, 2007-06-09 at 23:09 +0200, Tijnema wrote:
> On 6/9/07, Robert Cummings <robert@interjinn.com> wrote:
> > On Sat, 2007-06-09 at 22:00 +0100, Stut wrote:
> > > Tijnema wrote:
> > > > Hmm, fseek seems cool, but what about FTP resources? If I open them
> > > > with ftp_connect, do I need to fetch all data from FTP again, and then
> > > > just trash all data I don't need?
> > >
> > > Yes, but depending on what you're actually doing you may be able to
> > > cache enough to skip large chunks in subsequent requests.
> >
> > Why not just pass the chunk of data along in the session?
> >
> > Cheers,
> > Rob.
>
>
> Quite nasty to pass 1 DVD (4,7GB) of data through session huh?
Quite :) Your example illustrated 11 bytes... but I can understand that
it was just and example *heheh*.
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'