|
Posted by Vertuas on 11/07/06 14:20
Hi John
The images are purchased by the user, having them go through an instructions
page for there browser telling them to right click and save as an all that
i't would be nicer if they could click a download link, give it a name and
job done.
Trouble is linking to the image results in the browser displaying the image,
rather than downloading it.
Thanks for the reply.
David
"John Dunlop" <usenet+2004@john.dunlop.name> wrote in message
news:1162908302.192005.238550@h54g2000cwb.googlegroups.com...
> Vertuas:
>
>> Is there a way to get PHP to change the mime type for a file sent to a
>> browser.
>
> header('Content-Type: example/*')
>
>> I need my website viewers to be able to click a link to directly download
>> and save an image, rather than the browser displaying it.
>
> Why?
>
>> Is there some other way to make this happen?
>
> Look up Content-Disposition, but don't hold your breath.
>
> --
> Jock
>
Navigation:
[Reply to this message]
|