Using PHP Download

Downloading Files

Rather than hyperlinking directly to files, redirect users to download.php?filename= (appending the filename in question). This shows a page, registers a "hit" and then uses the meta refresh tag to deliver the actual file.

Administration

To list files browse to admin/PD_ListFiles.php. This page shows all registered files and their activity (hits). It also allows you to add new files.

To completely uninstall the PHP Download database, run admin/PD_Admin_UninstallDb.php. Note that this process will drop tables from the database and data will be lost!

Security

To preserve the integrity of your new download system, it is recommended that the admin folder be protected against casual access (either by deleting the folder after initial setup, or by configuring your web server to protect the folder).