Date: 06/11/02
- Next message: jsegovia <email protected>: "[PHP] Passing a Variable to PHP Via the URL"
- Previous message: Kris Vose: "[PHP] download link"
- In reply to: Kris Vose: "[PHP] download link"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: jsegovia <email protected>: "[PHP] Passing a Variable to PHP Via the URL"
- Previous message: Kris Vose: "[PHP] download link"
- In reply to: Kris Vose: "[PHP] download link"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

