[liphp] Code

Tim Sailer [email protected]
Mon, 16 Jun 2003 08:43:49 -0400


On Sun, Jun 15, 2003 at 11:12:27PM -0400, Christopher R. Merlo wrote:
> Tim:
> I'm hoping you remember this post.

Yup.

[clip]

> Using your ideas, I'm getting stuff into my DB.  Awesome.  A million
> thanks.  (It's actually Excel files at the moment, but just about any
> file type appears to work.

Great.

> http://turing.matcmp.ncc.edu/accounts/reference.php is the link.  None
> of you have accounts, but feel free to visit that page, and hit the
> view source link at the bottom.)
> 
> Later in this email, you explained how to view the picture in the PHP
> file.  But how would you provide a download link, and not show the
> file on screen?

Take a look at www.nsiinnovations.com, click on the 'Project Ideas'
link. You'll see a page come up (served out of the database), and
a link for downloading the PDF. I have to force that to be interpreted
as something the browser knew about. It's all in the mime-types, the
headers you send with the stream. 'plain/x-unknown' should ask you if you
want to save or open it.

Tim

-- 
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>> Tim Sailer                       ><  Coastal Internet, Inc.          <<
>> Network and Systems Operations   ><  PO Box 726                      <<
>> http://www.buoy.com              ><  Mastic, NY 11955                <<
>> [email protected]                     ><<<
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<