| 
<?php
include("EasyDownload.php");
 
 
 // path example
 $myPath = "/home/client/www/site1/folderDownload/";
 
 // New Object
 $objDownload = new EasyDownload();
 
 // Set physical path
 $objDownload->setPath($myPath);
 
 // Set file name on the server (real full name)
 $objDownload->setFileName($_GET["file"]);
 
 // In case that it does not desire to effect download with original name.
 // It configures the alternative name
 $objDownload->setFileNameDown($_GET["fileName"] . $_GET["extension"]);
 
 // get file
 $objDownload->Send();
 ?>
 |