PHP Classes

File: dnload.php

Recommend this page to a friend!
  Classes of George Clarke   ABrowser Class   dnload.php   Download  
File: dnload.php
Role: Auxiliary script
Content type: text/plain
Description: Used to download files.
Class: ABrowser Class
Browse server side files and folders
Author: By
Last change:
Date: 17 years ago
Size: 497 bytes
 

Contents

Class file image Download
<?
// This is an example of PHP script using DOWNLOADFILE class.
// On any page you need to create a link to this script.
// By pressing on this link you will automatically get a dialog box to download the "filename.ext" file.

include("downloadfileclass.inc");
$file=$_GET['f'];
$downloadfile = new DOWNLOADFILE($file);
if (!
$downloadfile->df_download()) echo "Sorry, we are experiencing technical difficulties downloading this file. Please report this error to Technical Support.";
?>