You are here: Re: download file via browser « All PHP « IT news, forums, messages
Re: download file via browser

Posted by robert on 09/28/29 11:46

never mind...set a couple of other header properties and got it working just
fine.


"robert" <ab@no.spam-alama-ding-dong> wrote in message
news:Hgo5g.12$zM6.5@fe03.lga...
| i've got several file on a server that have html links to them. most are
pdf
| but not all. i'd like to have the os of the client pc open the doc with
the
| appropriate executable when their related hyperlink is clicked. i've taken
| the sledge-hammer approach that i've read as a hack to do this, which is
| setting the html header to content-type=application/octet-stream. on my pc
| this works but on others, it doesn't. the application will sometimes
launch
| but (in the case of the pdf's) gives an error about the file format. i
think
| it's to do with the size of the file since the other pc's are hit and miss
| when getting the file.
|
| do i have to setup some kind of filter that will set headers to the
specific
| file type being opened...like pdf, or excel, or whatever? i'd really like
to
| stay away from getting that specific as that will become something that
must
| be maintained.
|
| thanks for your thoughts,
|
| me
|
|
|

 

Navigation:

[Reply to this 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

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