Newbie dot Org HomePage
Visit one of our web buddies
Xxaxx's Xperimints #12
.htaccess

If you have not as yet read Xxaxx's Xperiments #3 you should do so right now.

This tutorial will demonstrate how to force a web browser to always save a file rather than view it.

To make your files download automatically, place them in a directory with a .htaccess file containing the following:

AddType application/octet-stream FileExtention

Replace where it says "FileExtention" with extention of the kind of file you'd like be downloaded automatically. You can create a new line for each type of file. For instance if you'd like all the .gif files and .jpg files to automatically download, then your .htaccess file would have the following two lines in it:

AddType application/octet-stream gif
AddType application/octet-stream jpg