![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
Join Date: Feb 2006
Posts: 155
Rep Power: 3
![]() |
download from a website?
i am building a website for my course, and i want the instructor to be able to download the files from my website.
how do i do that ? when i hyperlink the file, you can navigate the file, but you cant download it, so i think there is more to it than just hyperlinking |
|
|
|
|
|
#2 |
|
Hobbyist Programmer
Join Date: Feb 2006
Posts: 155
Rep Power: 3
![]() |
i think part of my problem is ...
i am supposed to submit "binary" along with my source code and output. I assumed that the professor probably mean binary file a.out? (you know when you compile by typing the command g++ yourfilename.cc, a.out file gets created in the folder) anyway, i am supposed to upload the "binary" along with my source code and output, and I am afraid when I hyperlink the file a.out in the website, the link opens up in the browser with very weird characters, so I was wondering if there is any way I can make the person download my file |
|
|
|
|
|
#3 |
|
Sexy Programmer
|
What I did with my site is made the hyper link to a new window and prompts the user to download the file. It works like that with me. Add this tag to your website:
<a href="nameofyourfile.watever" target="_blank">Click to Download</a>
__________________
I would love to change the world, but they won't give me the source code! |
|
|
|
|
|
#4 |
|
Unverified User
Join Date: Aug 2005
Location: none
Posts: 146
Rep Power: 0
![]() |
Umm.. you have no clue what you're talking about. You have to download something to navigate to it.
__________________
Warning: My posts may change (dramatically) within the first 15 minutes they're posted. Got 'Nux?—GNU/Linux and other free software support. It's GNU/Linux, not just Linux. |
|
|
|
|
|
#5 |
|
Sexy Programmer
|
What are you talking about?
__________________
I would love to change the world, but they won't give me the source code! |
|
|
|
|
|
#6 |
|
Unverified User
Join Date: Aug 2005
Location: none
Posts: 146
Rep Power: 0
![]() |
Was that directed at me or the OP?
__________________
Warning: My posts may change (dramatically) within the first 15 minutes they're posted. Got 'Nux?—GNU/Linux and other free software support. It's GNU/Linux, not just Linux. |
|
|
|
|
|
#7 |
|
Programming Guru
![]() ![]() ![]() |
@programmingnoob: In case you didn't know... the -o parameter to g++ will let you name your output file something other than a.out (default).
g++ -o yourfilename yourfilename.cc As to your problem, you can take off the extension of the file. Or the user could right click the link and choose "save as".
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Website Making with html | hervens48 | HTML / XHTML / CSS | 5 | Jun 13th, 2006 6:55 PM |
| Download Blocker Finished - Random Text in Window Title? | bigguy | Visual Basic | 1 | Jan 13th, 2006 2:05 PM |
| Download Manager | bigguy | Visual Basic | 16 | Oct 31st, 2005 3:07 PM |
| Check This New Searchengine Concept Out ! | on_auc | Coder's Corner Lounge | 37 | Oct 12th, 2005 10:10 AM |