If I understand what you mean correctly, this is just an ordinary anchor
(nothing to do with php). For example,
<a href="http://mybox.domain.com/myfile.xls">Click to download</a>
When clicked, if ".xls" is in /etc/mime.types as
"application/vnd.ms-excel .xls" then it will either download or start
up the Excel application, depending upon the setting of the user's
browser. If not in /etc/mime.types, it will probably try to display the
file in the browser, depending upon the setting of DefaultType in
Hope this helps.
Kris Vose wrote:
>are there any php functions that handle downloads. For Instance I want to create a
>link that contains a url string. In this string a variable is defined as a file.
>This file will be downloaded when the user clicks on the link. How do you handle
>this file in php? Is there a function that will do this. I have tried the copy
>function but it does not seems to work.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php