Date: 05/12/00
- Next message: Aric Caley: "Re: [phplib] Protected Files"
- Previous message: Zakaria: "[phplib] Template patches: New Functionality and a lot of bugfixes"
- In reply to: Aric Caley: "[phplib] Protected Files"
- Next in thread: Aric Caley: "Re: [phplib] Protected Files"
- Reply: Aric Caley: "Re: [phplib] Protected Files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
> 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.
- Sascha
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Aric Caley: "Re: [phplib] Protected Files"
- Previous message: Zakaria: "[phplib] Template patches: New Functionality and a lot of bugfixes"
- In reply to: Aric Caley: "[phplib] Protected Files"
- Next in thread: Aric Caley: "Re: [phplib] Protected Files"
- Reply: Aric Caley: "Re: [phplib] Protected Files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

