PHP Classes

File: dnl.php

Recommend this page to a friend!
  Classes of Pierre FAUQUE   PHP Download Files and Log   dnl.php   Download  
File: dnl.php
Role: Example script
Content type: text/plain
Description: uses into downloads links
Class: PHP Download Files and Log
Serve local and remote files for download
Author: By
Last change:
Date: 3 years ago
Size: 509 bytes
 

Contents

Class file image Download
<?php
/*
  file: dnl.php v0.1 26/04/2020

  Use this script in your download links such as :
  - <a href="dnl.php?f=3">download</a>
  - <a href="dnl.php?f=eccbc87e4b5ce2fe28308fd9f2a7baf3">download</a>
  See the doc for the value of the parameter f

  You can copy the whole content of class.dnl.php (except the PHP
  tags <?php and ?>) and paste it instead of the line : require("lib/class.dnl.php");
*/

$num = $_GET["f"];
require(
"lib/class.dnl.php");
if(
$num) { $file = new dnl($num); }
?>