Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

How to make a direct download link?


  • Please log in to reply
13 replies to this topic

#1 CommittedC0der

CommittedC0der

    CC Leader

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1065 posts
  • Programming Language:C#
  • Learning:C#, JavaScript, PL/SQL

Posted 25 February 2010 - 09:52 PM

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.:confused:

EDIT* I have no idea what section to post this in so......sorry if this is the wrong section.
  • 0
There IS a war going on for your mind.
Nothing of eternal significance happens besides prayer.

#2 BlaineSch

BlaineSch

    CC Leader

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1559 posts

Posted 26 February 2010 - 12:28 AM

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

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

  • 0

#3 Orjan

Orjan

    CC Mentor

  • Moderator
  • 2918 posts
  • Location:Karlstad, Sweden
  • Programming Language:C, Java, C++, C#, PHP, JavaScript, Pascal
  • Learning:Java, C#

Posted 26 February 2010 - 01:26 PM

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?
  • 0

I'm a System developer at XLENT Consultant Group mainly working with SugarCRM.
Please DO NOT send mail or PM to me with programming questions, post them in the appropriate forum instead, where I and others can answer you.


#4 CommittedC0der

CommittedC0der

    CC Leader

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1065 posts
  • Programming Language:C#
  • Learning:C#, JavaScript, PL/SQL

Posted 26 February 2010 - 03:14 PM

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


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


OK well in my case I have a .msi file and I tryed this:
href="http://empire-software.com/Password_Creator.msi"
But it says page not found so what do I do?:confused:

EDIT* Well no duh I got it working ,spelled my URL wrong. :P
  • 0
There IS a war going on for your mind.
Nothing of eternal significance happens besides prayer.

#5 Red_Shadow

Red_Shadow

    CC Resident

  • Just Joined
  • PipPipPipPip
  • 50 posts

Posted 27 February 2010 - 01:17 PM

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
  • 0

#6 BlaineSch

BlaineSch

    CC Leader

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1559 posts

Posted 27 February 2010 - 01:32 PM

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


input or break for example

<span style="color: green;">First Name:</span>
<input type="text" name="fname" value="Blaine" />
<br />

  • 0

#7 Red_Shadow

Red_Shadow

    CC Resident

  • Just Joined
  • PipPipPipPip
  • 50 posts

Posted 27 February 2010 - 01:33 PM

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

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

#8 CommittedC0der

CommittedC0der

    CC Leader

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1065 posts
  • Programming Language:C#
  • Learning:C#, JavaScript, PL/SQL

Posted 27 February 2010 - 05:52 PM

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 ** with it.:P
  • 0
There IS a war going on for your mind.
Nothing of eternal significance happens besides prayer.

#9 Red_Shadow

Red_Shadow

    CC Resident

  • Just Joined
  • PipPipPipPip
  • 50 posts

Posted 27 February 2010 - 11:26 PM

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 ** with it.:P


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. ^^
  • 0

#10 BlaineSch

BlaineSch

    CC Leader

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1559 posts

Posted 28 February 2010 - 11:00 AM

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

#11 CommittedC0der

CommittedC0der

    CC Leader

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1065 posts
  • Programming Language:C#
  • Learning:C#, JavaScript, PL/SQL

Posted 28 February 2010 - 11:37 AM

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 ** 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.

Well I wasn't sure how to do something and I couldn't find the answer on google so I asked here, is that a problem??? I mean isn't that the point of this forum???
  • 0
There IS a war going on for your mind.
Nothing of eternal significance happens besides prayer.

#12 Guest_master99_*

Guest_master99_*
  • Guest

Posted 29 April 2010 - 03:33 AM

If you want direst link in any html page then
<a href="http://tutorials99.com">Download Here</a>

see below link to find higher Page Rank html guide and professional tutorials
http://www.tutorials99.com
  • 0




Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download