Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<?php
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=".$_GET["file"]);
readfile("secret_download_dir/".$_GET["file"]);
?>
PHP online manual said:If you want the user to be prompted to save the data you are sending, such as a generated PDF file, you can use the » Content-Disposition header to supply a recommended filename and force the browser to display the save dialog.
<?php
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename="[red]suggestedfilename.ext[/red]");
readfile("secret_download_dir/[red]encryptedfilename.ext[/red]");
?>
header("Content-type: application/octet-stream");
header([red]'[/red]Content-Disposition: attachment; filename="suggestedfilename.ext"[red]'[/red]);
readfile("secret_download_dir/encryptedfilename.ext");
header("Content-Disposition: attachment; filename="suggestedfilename.ext");
[gray] 1 2 3[/gray]