Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: Re: HOW TO FORCE BROWSER TO POP UP DOWNLOAD-WINDOW?


Message #1 by shinkyoun@y... on Tue, 15 May 2001 01:03:03
Before sending the file, you should send header( at least two )
- "Content-Type:application/save" -> this header force client browser to 
pop up download-window
- "Content-Disposition:filename=******" -> this header just inform the 
name of file to the client browser

- Then send the content of image file
(Of course, you should open the file handle to read the content)

Shin Kyoun (Stanley) Choi
=========================================================================
> hi folks,
> I have got I photo-database, where the big photographs shouldn't be 
shown 
> by the browser when you click on the thumbs. I want the browser to pop 
up 
> the download-window when I click a thumb-photo in order to download the 
> 300 dpi photo.
> Can anybody help me please?
> thanx a lot in advance,

  Return to Index