On 1/24/06, Peter Levan <[EMAIL PROTECTED]> wrote:
> Without the MIME type set the file displays like a text file in the browser
> window, however we want the download requestor to appear when accessing a
> file of this type as the file is useless when viewed as straight text as it
> is a data file designed to be used with SPSS.

The most common way of forcing a download is to use the .exe mimetype
-- 'application/octet-stream'

If you're using Apache, you can place the following in the .htaccess
file for the folder holding the .por files. This will ensure that the
files are always downloaded, even if the files location is entered via
the address bar. (the alternative option being store the files above
the root directory and only allow the download script to access them)

<Files *.por>
ForceType application/octet-stream
</Files>

HTH,

Andrew.
------
http://leftjustified.net/
N���.�Ȩ�X���+��i��n�Z�֫v�+��h��y�m�����쵩�j�l��.����f���.�ץ�w�q����(��b��(��,�)උazX����)��

Reply via email to