header("Content-Type: application/force-download"); header("Content-disposition: attachment; filename=$newfilename"); header("Content-Transfer-Encoding: binary"); readfile($location);