Jump to content


Photo

Changing "from" name in force download!


  • Please log in to reply
No replies to this topic

#1 legohead6

legohead6
  • Members
  • PipPipPip
  • Advanced Member
  • 434 posts

Posted 30 July 2006 - 08:43 PM

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

<?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;
	?>


"Syntax error" .. WHERE THE **** IS IT?!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users