Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 10-21-2004, 11:07 PM   #1
Member (5 bit)
 
blankloner's Avatar
 
Join Date: Apr 2004
Location: California
Posts: 29
Send a message via AIM to blankloner Send a message via Yahoo to blankloner
Putting Downloadables in a site

Im sorry for double posting, but i waited a month and got no response, i have a website, im using frontpage to do it, in html. Anyways, id like to know how i could put downloads. i already have the downloads page, do i just link a link to the file thats on my pc? im running appserv, so everything is off my pc, im guessing all i have to do is put the file in the appserv folder, and make a link in the page to it, but im not sure if this will only open the file or also allow you to save it to your hard drive, thank you
blankloner is offline   Reply With Quote
Old 10-22-2004, 07:49 AM   #2
Staff
Premium Member
 
rjfvillarosa's Avatar
 
Join Date: Sep 2004
Location: Cardiff, Wales. UK
Posts: 6,105
To allow downloading from your site the files need to be uploaded to your site's server, doing this involves the use of CGI scripts and I am not the person to talk to about this. I am sure there are a few people here who can help you though.
rjfvillarosa is offline   Reply With Quote
Old 11-03-2004, 11:37 AM   #3
Member (7 bit)
 
Join Date: Apr 2004
Location: something like a pimp
Posts: 68
I'm sorry I don't think that is entirely accurate. To allow downloading of files from your website you merely have to link to them in the anchor tag of your html document.

Here is an example... say your html document and file to be downloaded (thefile.zip) are in the same folder. inside your html document you have a link that looks like this:

Code:
<a href="thefile.zip">Download File</a>
So now it is linked to thefile.zip which is in the same folder as the html document. If I created a folder in the same directory as these two files, naming it 'thefolder', I can then put thefile.zip in that folder to keep things organized. Now I would change the reference in my anchor tag to link to it in thefolder.

Code:
<a href="thefolder/thefile.zip">Download File</a>
All you have to do is upload the file to the same directory as your html document. You can not link to it on your computer, unless your computer is a working webserver.

webG
webguy0000 is offline   Reply With Quote
Old 11-03-2004, 11:44 AM   #4
Member (7 bit)
 
Join Date: Apr 2004
Location: something like a pimp
Posts: 68
Read the last sentence of your post and thought I might clear something up. You can't force a file to be downloaded that is meant to be rendered by the web browser.. like an html document. You can't make a user download an html document via an anchor tag. It can be done with some CGI however. And I realize now that you are using your own computer as a webserver, so just put it in the same directory and you should be good.

webG
webguy0000 is offline   Reply With Quote
Old 11-03-2004, 11:45 AM   #5
Member (1 million bit!)
 
mrmister1's Avatar
 
Join Date: Feb 2003
Location: NY
Posts: 1,160
Since your using AppServ, I'm guessing your using the computer as the server. As Webguy said, all you have to do is make a link to the location of the file using the tag.
PHP Code:
<a href="C:\AppServ\Files\File.exe">Click here to download</a
__________________
Black X-Dreamer Case | Intel Pentium 4 2.66 GHz | Intel D845PESVL | 512 MB PC2700 DDR-SDRAM | WD 120 GB Special Edition | Pioneer 16x DVD-ROM | Mitsumi 3.5-inch 1.44 MB | ATi Radeon 9800 Pro | Creative Labs Sound Blaster Live! 5.1

mrmister1
mrmister1 is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:10 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2