Jump to content


Photo

forced download.


  • Please log in to reply
3 replies to this topic

#1 spires

spires
  • Members
  • PipPipPip
  • Advanced Member
  • 492 posts

Posted 18 August 2006 - 06:53 PM

Hi,

Does any one know why:
when i click a link to download (page1)
the link throws me to the download page (page2 see * code)
then throws me back to page one?

even if i:
click a link to download (page1)
throws me to a jump page (page2). which, using a header location
throws me to the download page (page3 see * code)
then throws me back to page one?

why does it always comeback to page one?

thanks for any help on this.  :)

*
$dir = '../cart/mp31/';	
$file = $dir.$_REQUEST['userfile_name1'];

header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); 
header('Content-length: '.filesize($file));
header("Content-Type: application/force-download");
header( "Content-Disposition: attachment; filename=".basename($file));

header( "Content-Description: File Transfer");
@readfile($file);


How to make over $600 a day from AdSense? Discover EXACTLY how he does it in these videos:
http://www.adsense-online.com

#2 spires

spires
  • Members
  • PipPipPip
  • Advanced Member
  • 492 posts

Posted 18 August 2006 - 07:29 PM

I hope i haven't wrote it to confussing for everyone.
My English aint to good.
How to make over $600 a day from AdSense? Discover EXACTLY how he does it in these videos:
http://www.adsense-online.com

#3 ryanlwh

ryanlwh
  • Staff Alumni
  • Advanced Member
  • 511 posts

Posted 18 August 2006 - 07:56 PM

because of the "attachement", it opens a popup without trying to open the download page in the browser
Please use EDIT * 100...
Please use
or [php] * 1000...

PLEASE READ THE POSTED SOLUTIONS CAREFULLY * 1000000...

#4 spires

spires
  • Members
  • PipPipPip
  • Advanced Member
  • 492 posts

Posted 18 August 2006 - 08:01 PM

Thanks for the reply.

Do you know if there is any way around this.

I want it to go:
page 1 (link to download)
Page 2 (jump page)
Page 3 (download page)
then stop at page 2

Can this be done?
How to make over $600 a day from AdSense? Discover EXACTLY how he does it in these videos:
http://www.adsense-online.com




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users