Last updated on March 9th, 2022 at 05:36 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!!! 🙂