Zubrag.com
April 21, 2018, 01:56:58 AM *
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: File Download  (Read 6182 times)
belcherds
Newbie
*
Posts: 1


« on: February 20, 2008, 12:12:21 PM »

I am a novice programmer at best.  I came across the script for downloading a file using PHP.  It was found at this url: http://www.zubrag.com/scripts/download.php.  My problem is that I uploaded the download PHP file to my server, and I followed the directions, but when I click on the link to get the file it just shows a page with the entire PHP code on it.  Is there something obvious I am doing wrong?  Here is the page where I am attempting to utilize the script: http://www.cardiacwv.org/podcast.htm.  I tried to use the code on the button that says click here to download to iTunes.  I just want the "save as" dialog box to open when that link is clicked.

Any help is greatly appreciated.  Thanks.

Logged
recoding
Global Moderator
Jr. Member
*****
Posts: 71


WWW
« Reply #1 on: July 02, 2008, 04:53:27 PM »

Does your server support PHP? Most times when you get this error it is because the server is set up wrong or doesn't have PHP on it, meaning you just see the code as the server thinks it is just plain text.
Try checking with your host, its not a script problem, as it happened before the script could even do anything.

Smiley
Logged

recoding
Global Moderator
Jr. Member
*****
Posts: 71


WWW
« Reply #2 on: July 02, 2008, 04:55:25 PM »

I also noticed that your link to download is as below:
http://www.cardiacwv.org/download/download.php?f%20=%20ipod_rss.gif
it needs to be:
http://www.cardiacwv.org/download/download.php?f=ipod_rss.gif
, Although I'm not even sure if its meant to download a gif file?
Logged

Pages: [1]
  Print  
 
Jump to:  

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