Reply to Re: Image MIME/file type

Your name:

Reply:


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
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация