Downloading a file via php page
Posted: Tue Jun 25, 2002 1:44 pm
Hello everybody!
I'm a beginner, (and I don't write good English too,..) and I got one question.
I have a couple of files on my homepage, available for download, and I want them to be downloaded via a page called download.php. I want to be able to do links like this:
This adress will send you to the page download.php and at the download page you will find information and a download-link to the file filename.zip
I've tried this code, but it didn't work. Something wrong?
Thank you for taking time reading and (maybe) give me a answer!
I'm a beginner, (and I don't write good English too,..) and I got one question.
I have a couple of files on my homepage, available for download, and I want them to be downloaded via a page called download.php. I want to be able to do links like this:
Code: Select all
www.mysite.com/download.php?file=filename.zipI've tried this code, but it didn't work. Something wrong?
Code: Select all
<?php
if ($fil == "") {
echo "A error message!";
} else {
echo "Dwld the file by a click at this <a href="" $fil "">LINK</a>";
}
?>