legohead6 Posted July 30, 2006 Share Posted July 30, 2006 I want to change where it says the file is from in the force download code in the code recipretory..here it is with a tiny bit of modification[code]<?PHP$name=$_REQUEST['file'];$fname=base64_decode("$name");header("Pragma: public");header("Expires: 0");header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Content-Type: application/force-download");header( "Content-Disposition: attachment; filename=User Agreement");header( "Content-Description: File Transfer");header('Accept-Ranges: bytes'); header('Content-Length: ' . filesize($fname));@readfile($fname); exit; ?>[/code] Quote Link to comment https://forums.phpfreaks.com/topic/16045-changing-from-name-in-force-download/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.