There are different ways to download a file. Easiest method is to use simple HTML like the one below.
The content of Download.php file will be like the one below.
<?php header("Content-Type: application/octet-stream"); header("Content-Disposition: attachment; filename=".$_GET['path']); readfile($_GET['path']); ?>
Make sure you copy the getfile.html and Download.php file in the same location. You can always modified the file path accordingly. Happy Coding!!! 🙂