Provide a download link which would link to a download.php file. In this file output
header('Content-type: application/octet-stream');
and then readfile(); the desired file.


REMEMBER to check if it is realy a file that the user can see, otherwise anybody can download your php scripts (and maybe even other files) too.

Sam Folk-Williams wrote:
Hi,

I have a site with hundreds of downloadable forms in MS Word format. Right now to download a form you have to right-click and choose "Save Target As..." to download the form. Is there a simple script that I could put in that would trigger the download with a left-click? (The end users are not very savy and are having a hard time with the "Save target as..." concept).

Thanks for your help,

Sam




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to