Re: Keeping file pointers open after script end

From: Date: Sat, 09 Jun 2007 21:08:39 +0000
Subject: Re: Keeping file pointers open after script end
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-256471@lists.php.net to get a copy of this message
On 6/9/07, Stut <stuttle@gmail.com> 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. -Stut
Well, I'm working on a script that can transfer large files over HTTP. The point is that I have a HTTP proxy at school, and so I can use HTTP only. Moreover, they blocked downloading files bigger than 1MB, and so, I wanted to transfer files in packets of lets say 990KB, so that they can be downloaded fine through the HTTP proxy. This means i'm calling repeatly the script for a next chunk, and that's why I wanted to keep the FTP connection open. Tijnema


« previous php.general (#256471) next »