Closed Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: How to make a direct download link?

  1. #1
    Join Date
    Nov 2009
    Location
    I seem to be lost...
    Posts
    1,566
    Blog Entries
    1
    Rep Power
    22

    How to make a direct download link?

    How do I make a direct download link for a program I want others to download from my website? and also it's not illegal right Google only brought up stuff that said it was illegal or something.

    EDIT* I have no idea what section to post this in so......sorry if this is the wrong section.
    Knowledge: Intermediate C#, Beginner AS3, HTML, CSS, Binary, Hex, Octal.
    Science is only an educated theory, which we cannot disprove.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #2
    Join Date
    Apr 2009
    Location
    Trapped in my own little world.
    Posts
    2,487
    Rep Power
    33

    Re: How to make a direct download link?

    If you have the .exe url you can just make a link

    Code:
    <a href="http://example.com/program.exe">Download Here</a

  4. #3
    Join Date
    Sep 2007
    Location
    Karlstad, Sweden
    Posts
    3,082
    Blog Entries
    7
    Rep Power
    42

    Re: How to make a direct download link?

    It's legal to spread shareware and freeware etc, but not pay-only software, but that you problably knew. how did google tell you that? error message? mail?
    __________________________________________
    I study Information Systems at Karlstad University when I'm not on CodeCall

  5. #4
    Join Date
    Nov 2009
    Location
    I seem to be lost...
    Posts
    1,566
    Blog Entries
    1
    Rep Power
    22

    Re: How to make a direct download link?

    If you have the .exe url you can just make a link
    Code:
    <a href="http://example.com/program.exe">Download Here</a>
    OK well in my case I have a .msi file and I tryed this:
    Code:
    href="http://empire-software.com/Password_Creator.msi"
    But it says page not found so what do I do?

    EDIT* Well no duh I got it working ,spelled my URL wrong.
    Knowledge: Intermediate C#, Beginner AS3, HTML, CSS, Binary, Hex, Octal.
    Science is only an educated theory, which we cannot disprove.

  6. #5
    Red_Shadow's Avatar
    Red_Shadow is offline Learning Programmer
    Join Date
    Jan 2009
    Location
    over the rainbow
    Posts
    58
    Rep Power
    0

    Re: How to make a direct download link?

    Make sure the flie is located at your web-root (where index.html is placed) and has the *exact* name you typed in the address bar.

    You need to understand how HTML work's.

    Every tag opens a section/division of the text.
    eg <a> tell's us this is an active (or whatever it's called in the HTML specification) part of the code. Everything until the end of this div (</a>) is part of it.

    So when you do links you basically do:

    <a href"link.com">Text in the "a" section - <a> makes this "clickable</a> <-- end of <a> (why the entire page isn't clickable.

    the attribute "href" specifies the link that should be followed when action is taken to <a>.

    So you always need <a href="link.tld">link name</a>.
    You can't just write the bits "you need".

    It seems you need to read this:
    HTML Tutorial

  7. #6
    Join Date
    Apr 2009
    Location
    Trapped in my own little world.
    Posts
    2,487
    Rep Power
    33

    Re: How to make a direct download link?

    Don't forget about self ending tags not all tags have a ending tag..


    input or break for example
    HTML Code:
    <span style="color: green;">First Name:</span>
    <input type="text" name="fname" value="Blaine" />
    <br />

  8. #7
    Red_Shadow's Avatar
    Red_Shadow is offline Learning Programmer
    Join Date
    Jan 2009
    Location
    over the rainbow
    Posts
    58
    Rep Power
    0

    Re: How to make a direct download link?

    In xhtml they do, which is what you should be using.

    Eg <br /> instead of <br> etc.

  9. #8
    Join Date
    Nov 2009
    Location
    I seem to be lost...
    Posts
    1,566
    Blog Entries
    1
    Rep Power
    22

    Re: How to make a direct download link?

    XD ya I know about closing tags and self closing tags and how to use the <a> tag I just posted the link instead of all the crap with it.
    Knowledge: Intermediate C#, Beginner AS3, HTML, CSS, Binary, Hex, Octal.
    Science is only an educated theory, which we cannot disprove.

  10. #9
    Red_Shadow's Avatar
    Red_Shadow is offline Learning Programmer
    Join Date
    Jan 2009
    Location
    over the rainbow
    Posts
    58
    Rep Power
    0

    Re: How to make a direct download link?

    Quote Originally Posted by thegamemaker View Post
    XD ya I know about closing tags and self closing tags and how to use the <a> tag I just posted the link instead of all the crap with it.
    Then you should know href references all files, and the solution would have been obvious.

    If you had *really* understood, I don't think this thread would have been necessary.

  11. #10
    Join Date
    Apr 2009
    Location
    Trapped in my own little world.
    Posts
    2,487
    Rep Power
    33

    Re: How to make a direct download link?

    Were all here to learn red_shadow, no point in judging.

Closed Thread
Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (0 members and 2 guests)

Similar Threads

  1. Prevent direct file download
    By reservoirdog1985 in forum PHP Development
    Replies: 1
    Last Post: 06-12-2011, 05:11 PM
  2. link direct
    By techker in forum PHP Development
    Replies: 6
    Last Post: 04-26-2009, 03:42 PM
  3. Direct link from a webpage to desktop
    By Azno in forum PHP Development
    Replies: 8
    Last Post: 08-06-2008, 04:35 AM
  4. Where is the download link for IonFiles?
    By RobbieMor in forum Community Projects
    Replies: 2
    Last Post: 01-22-2008, 02:24 PM
  5. Download link for mp4 and other files
    By icode in forum JavaScript and CSS
    Replies: 3
    Last Post: 12-31-2007, 08:35 AM

Tags for this Thread

Bookmarks

Posting Permissions

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