Well, there's a solution to your problem when it comes to PHP pages. If you've got a PHP file, and you want to prompt the user to download it instead of showing its contents, you include this somewhere on the page (best near the top):
PHP Code:
<?php
header('Content-type: application/octet-stream');
?>
If, however, you're attempting to apply this concept to other file types, you'll need to do it through .htaccess by explicity declaring the application/octet-stream MIME type for files with the extensions you'd like. To do that, I recommend placng all of the "downloadable" files into their own directory, creating an .htaccess file in that directory, then including the line below for each extension you'd like to be treated as a download.
/home/#USERNAME#/public_html/#DOWNLOADS#/.htaccess:
Code:
AddType application/octet-stream .mp3
AddType application/octet-stream .gif
The example above would make all mp3 and gif files in the #DOWNLOADS# directory prompt the user to download them rather than displaying their contents. To add more file types, simply mimic the examples provided. Hope I've helped...