Re: [PHP] download link From: Adam Voigt (adam.voigt <email protected>)
Date: 06/11/02

You mean like:
<?php

$file = "whatever.exe";
echo "<a href=\"downloads/$file\">Get This File</a>";

?>

Which would make a download link for "downloads/whatever.exe" in HTML?

Adam Voigt
adam.voigt <email protected>

On Tue, 2002-06-11 at 11:43, 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.
>
> Kris
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

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