09-19-2007, 02:52 PM
|
#1 (permalink)
|
|
The Contributor
Join Date: Sep 2007
Location: London, UK
Posts: 47
Thanks: 4
|
Forced Download
This script will get the file name from a url, it will assume that all files to be downloaded are on the same level as the download file, e.g:
Where to place the download file:
downloads/
download.php
[all other files]
File Linkage:
If you want to link to the file, use this sort of html code:
Code:
<a href="download.php?file=foo.html">Download</a>
In the example above the folder format would be:
/
file-linking-to-download.html
/downloads/
download.php
foo.html
|
|
|
|