Re: [phplib] Protected Files From: Aric Caley (greywire <email protected>)
Date: 05/12/00

----- Original Message -----
From: Sascha Schumann <sascha <email protected>>
To: Aric Caley <greywire <email protected>>
Cc: PHPLib Mailing list <phplib <email protected>>
Sent: Friday, May 12, 2000 10:50 AM
Subject: Re: [phplib] Protected Files

> On Fri, 12 May 2000, Aric Caley wrote:
>
> > OK I finally got the MP3 downloading to work. I had to use this:
> >
> > Header("Content-Type: application/octet-stream");
> > Header("Content-Length: ".filesize($full));
> > Header("Content-Disposition: attachment; filename=$file");
> > Header("Content-Description: PHP3 Generated Data" );
> >
> >
> > The Content-Length header was needed; it wouldn't download with the
right
> > filename as given without it.
> >
> > Anyways, I have some more questions: When I download something, it wont
use
> > GetRight if that is installed -- and I would like it to, because
GetRight is
>
> Your script has to send the correct content-type, so that the
> client passes the data to the right plug-in/program.

I dont (in this case) want it to go to a plug-in... I want this to be a
download, not a streamed file. This is for a music e-com site where people
purchase an MP3 and then download and save it. What content-type should I
use? If I used whatever the MP3 type is, it might just stream into WinAmp
and not allow (or at least not prompt the user) to save, confusing the user.

>
> > real nice especially if you get cut off and want to resume the download,
and
> > it remembers a list of things to download. Is there any way to get it
to
> > download through one these download manager programs? How do those
sites
> > like Tucows cause a download to happen automatically without pushing any
> > buttons??
>
> You probably need to add logic to your script to handle HTTP
> Range requests, so that people can "resume" downloads.

Is this something in the headers?

>
> - Sascha
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: phplib-unsubscribe <email protected>
> For additional commands, e-mail: phplib-help <email protected>

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>