View Single Post
  #11   Spotlight this post!  
Unread 04-11-2002, 08:39
Brandon Martus's Avatar Unsung FIRST Hero
Brandon Martus Brandon Martus is offline
busy.
AKA: B. Slash Kamen
no team
 
Join Date: May 2001
Rookie Year: 1998
Location: Nevada, TX USA
Posts: 5,271
Brandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond repute
Send a message via ICQ to Brandon Martus Send a message via AIM to Brandon Martus Send a message via Yahoo to Brandon Martus
Sometimes it depends on how the site sends the files, rather than what connection you have or computer you use. For example, in the white papers section, I had to change the headers of the download script, so in most cases it will prompt you to save the file, rather then open it up in your browser.

Note the 'download' and 'force-download' headers being sent before the file is sent.

PHP Code:
header("Content-Type: application/octet-stream");
header("Content-Type: application/download");
header("Content-Type: application/force-download");
header("Content-Type: ".$MIME[$paper[filetype]] );
header("Content-Disposition: attachment; filename=$filename");
header("Content-Length: ".filesize("$name"));
header("Pragma: no-cache");
header("Expires: 0"); 
__________________
Brandon Martus
e-mail
Reply With Quote