If your blogs or sites have download links to your files, you might want to put all of your files in one directory rather than have them scattered throughout your site. This way you can manage them easier.
To download these files, you provide a downloader script. The script can be used for protection from direct download, check user's authentication, write logs, and such.
I've made a simple script for this purpose. It has features:
Nash on Jun 5, 2008:
$fileserver_path = dirname(__FILE__);$fileserver_path = "/var/www/pub/downloads"; petter on May 21, 2008:
Nash on May 22, 2008:
Adam on Jul 26, 2008:
Nash on Jul 28, 2008:
jared on Jul 30, 2008:
Nash on Jul 31, 2008:
jared on Jul 31, 2008:
Nash on Aug 1, 2008:
Jared on Aug 11, 2008:
drizad on Sep 13, 2008:
Nash on Sep 15, 2008:
manbros on Sep 17, 2008:
Mike on Dec 14, 2008:
Ben on Dec 20, 2008:
Nash on Dec 21, 2008:
Sobat Lama on Dec 27, 2008:
Nash on Dec 28, 2008:
Ciberyan on Jan 18, 2009:
Nash on Jan 19, 2009:
$_SESSION['login']['user_id'] with your session vars. Ali on Jan 26, 2009:
Nash on Jan 26, 2009:
$fileserver_path to the directory where your files reside. Max on Feb 26, 2009:
Nan on May 1, 2009:
Nash on May 7, 2009:
| Tel. | +62 31 8662872 +62 856 338 6017 |
| ICQ | 489571630 |
| Skype | dede_bl4ckheart |
| Yahoo | dede_bl4ckheart |
| nashruddin.amin |
Dennis on May 11, 2008:
In download.php file, i realise that download.php must be place in the same directory of the folder.Is it possible that i can place it public_html/download.php ,while my download folder is at public_html/upload/? dirname(__FILE__);