Skip to content

Instantly share code, notes, and snippets.

@RdlP
Created October 7, 2014 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RdlP/40934e496813954417b2 to your computer and use it in GitHub Desktop.
Save RdlP/40934e496813954417b2 to your computer and use it in GitHub Desktop.
<?php
if(!empty($_GET["resource"]))
{
$folder = "./Downloads/";
header("Content-type: application/force-download");
if ($_GET['resource'] == 0){
readfile($folder . Resource2);
}else if ($_GET['resource'] == 1){
readfile($folder . Resource1);
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment