Last updated on July 24th, 2022 at 09:19 am
There are different ways to download a file. Easiest method is to use simple HTML 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 modify the file path accordingly. Happy Coding!!! 🙂