Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New Coder
    Join Date
    Aug 2005
    Location
    Ohio
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to write out a download code?

    I have been workng for days on a new website. I want to post a download page, but am not sure how to write this one? I have fumbled with some of the following thinking it must be in a similar format as some of the ones I have used for other things:


    Pitcure = <IMG height=196 src="images/Aggressive Perfector.gif" width=265>

    Email Button = <A href="mailto:dbh_central@yahoo.com" target="_blank"><b>DBH_Central@yahoo.com</b></a>

    Another image = <a href="index.html"><img border="0" src="header.gif" width="765" height="132"></a>
    But I can't seem to come up with a download code??

    Thanks ahead of time Rick

    P.S. - It's a linux server (files in public_html), and in that (another file is downloads)
    Last edited by rickycen; 10-04-2005 at 09:43 PM.

  • #2
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    What's a 'download code' ?

  • #3
    Senior Coder nikkiH's Avatar
    Join Date
    Jun 2005
    Location
    Near Chicago, IL, USA
    Posts
    1,973
    Thanks
    1
    Thanked 32 Times in 31 Posts
    You want to stream out download files?
    Here's a C# example.
    http://www.ipwebdesign.net/useful_csharpFileDL.html

    If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
    Bored? Visit
    http://www.kaelisspace.com/

  • #4
    New Coder
    Join Date
    Aug 2005
    Location
    Ohio
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Close........... but yeah I want people to be able to download files from the server. That is something written for windows, Intel.

    I just want what needs to be written on the webpage, for each file.

    make sense I hope?

    Rick

  • #5
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    If you want someone to be able to download a file, just make a link to it and when they click on it, given its the correct type of file like a zip or rar it will ask the user to download it.
    OracleGuy

  • #6
    New Coder
    Join Date
    Aug 2005
    Location
    Ohio
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    That's what I meant, still working on it.

    Thanks for eberybodys input

    Rick

  • #7
    Regular Coder
    Join Date
    Oct 2002
    Posts
    178
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Code:
    <a href="myfile.exe" target="new">Click here to download myfile.exe</a>

  • #8
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Whats with digging up the old thread? The OP already got the answer they needed, which was basically what you posted.
    OracleGuy


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •