Re: Reading remote files

From: Date: Tue, 01 Sep 2009 17:46:24 +0000
Subject: Re: Reading remote files
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-297564@lists.php.net to get a copy of this message
On Tue, 2009-09-01 at 10:43 -0700, Grace Shibley wrote: > HTTP > > On Tue, Sep 1, 2009 at 10:36 AM, Ashley Sheridan > <ash@ashleysheridan.co.uk>wrote: > > > On Tue, 2009-09-01 at 10:34 -0700, Grace Shibley wrote: > > > Is there a way to read large (possibly 500 MB) remote files without > > loading > > > the whole file into memory? > > > We are trying to write a function that will return chunks of binary data > > > from a file on our server given a file location, specified offset and > > data > > > size. > > > > > > But, we have not been able to get around loading the whole file into > > memory > > > first. Is there a way to do this?? > > > > What sort of remote file is it, i.e. how are you remotely connecting to > > it? FTP, HTTP, SSH? > > > > Thanks, > > Ash > > http://www.ashleysheridan.co.uk > > > > > > > > As far as I know then, HTTP doesn't support entering files at points specified by a remote user. A request is made for a file, and the server determines how to break it up in order to send. Thanks, Ash http://www.ashleysheridan.co.uk

« previous php.general (#297564) next »