Zubrag.com
May 20, 2012, 11:59:03 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Smart File download help needed!  (Read 3323 times)
Getway
Newbie
*
Posts: 6


« on: November 24, 2007, 04:00:26 pm »

Hi! and thanks for this smart file download script, I very much like to use this script for some Zip Archive download file which look to be stright forward but I'm  still having this problem of making it work with my download files, I've try to study almost all the posting about it on this site with some useful information also on setting it but this problem still come Up which I hope you'll be able to help me with or someone here as well, thanks again for this help Smiley
This is the problem I'm having at present with this Error message:

[Sat Nov 24 21:18:14 2007] [error] [client 127.0.0.1] PHP Warning:  Unexpected character in input:  '\\' (ASCII=92) state=1 in C:\\home\\Apache2\\htdocs\\downloads\\download.php on line 160, referer: http://localhost/downloads/index.html

[Sat Nov 24 21:18:14 2007] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in C:\\home\\Apache2\\htdocs\\downloads\\download.php on line 161, referer: http://localhost/downloads/index.html

And this is the content on line 160 and 161 on download.php?

160) header("Content-Disposition: attachment; filename=\"$asfname"\");
161) header("Content-Transfer-Encoding: binary");

I hope this will also help you fix this problem thanks.

Logged
zubrag
Administrator
Hero Member
*****
Posts: 753


WWW
« Reply #1 on: November 26, 2007, 05:50:12 am »

Hi. Please let me know how you are using the script. Did you add link to download.php on the index.html?
Logged
Getway
Newbie
*
Posts: 6


« Reply #2 on: November 26, 2007, 06:32:08 am »

Hi and thanks for your quick respond! yes I make a link on the index page to see if I can quickly access the download this is how I made the connection from the index page, please help if not required like this thanks!

<p><a href="http://localhost/downloads/download.php?f=fastway.zip">Cool Smart Download</a></p>
Logged
zubrag
Administrator
Hero Member
*****
Posts: 753


WWW
« Reply #3 on: November 26, 2007, 06:53:27 am »

Did you change this line?
header("Content-Disposition: attachment; filename=\"$asfname"\");

It should be (note the slash position)
header("Content-Disposition: attachment; filename=\"$asfname\"");
Logged
Getway
Newbie
*
Posts: 6


« Reply #4 on: November 26, 2007, 10:41:51 am »

Wow Cool you're a GENIUS!! that put me on the game, an I very much appreciate that thanks!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC