Re: File Download - Complete Newbie

From: Date: Sat, 26 Oct 2002 21:45:18 +0000
Subject: Re: File Download - Complete Newbie
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-22716@lists.php.net to get a copy of this message
if you have the following variables: $path = your download directory path, relative to the webserver address. Like "http://www.yoursite.com/downloads/". $file = filename $name = Name or description of file. Just create your table, and in the proper cell, put: echo "<a href=\"$path$file\">$name</a>"; The webserver and browser should take care of the rest. -Micah At 09:51 PM 10/26/2002 +0100, Alex Francis wrote:
I am trying to download file stored in a directory on my server. The information and the path to the file are stored in a MySQL database. This information is then displayed in a table. I now need to link to the correct file to download it and hav'nt a clue how to do it. Can someone help or point me to a tutorial which shows how to do this. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.db (#22716) next »