--- Venkatesh Hosur <[EMAIL PROTECTED]> wrote: > I was just looking around for information on Download > of files using PHP. I need to provide link/button, by > clicking which a user can download a file (Say a CSV > file..)
The best solution, in my opinion, is just to use a straightforward HTML link: <a href="http://yourserver.org/foo.csv">Download foo.csv</a> The only caveat to this is that you must make the file available as a URL, meaning it must be stored under document root. If you instead want to have a PHP application decide whether the user is allowed to download the file as a way to restrict access to it, that's a different question. :-) Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php