@bardgrafelman: thanks alot, but when i run my page after putting the code it gives me an error.
the code is:
http://mywebsite.com/LPv3/to/my file.pdf
and the error is:
[function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request in \boswinfs01\home\users\web\b291\ez.mywebsite.com\LPv3\download1.php on line 2
@: no i just want a script to allow my user to download a file from a link i put in my web page.