View Single Post
  #7  
Old 2nd May 2009, 15:00
crztz crztz is offline
Senior Member
 
Join Date: Apr 2009
P2P
Posts: 34
Default
Quote:
Originally Posted by Seth View Post
Google for mod_rewrite

not neceseraly to use mod rewite.. u can just use download_atachment..

in download.php just modify it to:



if ($GLOBALS["DOWNLOAD_METHOD"] == DOWNLOAD_ATTACHMENT) {
header("Pragma: private");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-Disposition: attachment; filename=\"".$row["save_as"].".torrent\"");

where save_as must exist in your database or just modifiy it with $row["name"]


regards
Reply With Quote