Last updated on January 10th, 2023 at 01:57 pm
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!!! 🙂