|
Posted by C. (http://symcbean.blogspot.c on July 10, 2008, 12:09 pm
Please log in for more thread options > C. Feldmann wrote:
> > Hello,
>
> > I have stumbled upon a problem, for which I can=92t seem to find a
> > solution for. I would like to offer files for downloading. To allow
> > files to have duplicate names I renamed as random alphanumeric-
> > strings. With the header command I can give them their =93old name=94 b=
ack
> > just before downloading. Then use readfile or loop through feof/echo
> > fread to push the file=92s contents. This works well.
>
> > The amount of files has increased, so that I am hosting them on a
> > separate box.
> > How do I push the files without:
> > a) installing a script on the separate box
> > and b) channeling the bandwidth through the server with the script?
>
> > I was hoping I could send a content-disposition-header command
> > followed by a location-header command, but that does not seem to work.
> > The location gets changed but the content-disposition info gets
> > ignored.
>
> > Does anyone have any ideas on this?
>
> > Thanks!
> > -Casper
>
> You won't be able to serve the files from the other box directly without
> a server installed, and probably some scripts. =A0Then you can use the
> Location header to redirect - although your user will also see the new
> location.
>
> Otherwise, you can fetch the files from the other server, i.e. with nfs,
> and server them from your server.
>
(or http or....?)
C.
|