Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 2nd, 2007, 7:28 PM   #1
programmingnoob
Hobbyist Programmer
 
Join Date: Feb 2006
Posts: 154
Rep Power: 3 programmingnoob is on a distinguished road
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
programmingnoob is offline   Reply With Quote
Old Feb 2nd, 2007, 7:46 PM   #2
programmingnoob
Hobbyist Programmer
 
Join Date: Feb 2006
Posts: 154
Rep Power: 3 programmingnoob is on a distinguished road
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
programmingnoob is offline   Reply With Quote
Old Feb 2nd, 2007, 7:47 PM   #3
ReggaetonKing
Sexy Programmer
 
ReggaetonKing's Avatar
 
Join Date: Nov 2005
Location: New Jersey
Posts: 891
Rep Power: 3 ReggaetonKing is on a distinguished road
Send a message via AIM to ReggaetonKing
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>
When a user accesses a file on your website, let's say a pdf file. The user can just save it by going to the "File" menu of your web browser and clicking on "Save As"
__________________
I would love to change the world, but they won't give me the source code!
ReggaetonKing is offline   Reply With Quote
Old Feb 2nd, 2007, 9:19 PM   #4
a thing
Unverified User
 
a thing's Avatar
 
Join Date: Aug 2005
Location: none
Posts: 146
Rep Power: 0 a thing is on a distinguished road
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.
a thing is offline   Reply With Quote
Old Feb 2nd, 2007, 9:28 PM   #5
ReggaetonKing
Sexy Programmer
 
ReggaetonKing's Avatar
 
Join Date: Nov 2005
Location: New Jersey
Posts: 891
Rep Power: 3 ReggaetonKing is on a distinguished road
Send a message via AIM to ReggaetonKing
What are you talking about?
__________________
I would love to change the world, but they won't give me the source code!
ReggaetonKing is offline   Reply With Quote
Old Feb 4th, 2007, 5:40 PM   #6
a thing
Unverified User
 
a thing's Avatar
 
Join Date: Aug 2005
Location: none
Posts: 146
Rep Power: 0 a thing is on a distinguished road
Quote:
Originally Posted by reggaeton_king View Post
What are you talking about?
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.
a thing is offline   Reply With Quote
Old Feb 5th, 2007, 9:05 AM   #7
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
@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."
Infinite Recursion is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Website Making with html hervens48 HTML / XHTML / CSS 5 Jun 13th, 2006 5:55 PM
Download Blocker Finished - Random Text in Window Title? bigguy Visual Basic 1 Jan 13th, 2006 1:05 PM
Download Manager bigguy Visual Basic 16 Oct 31st, 2005 2:07 PM
Check This New Searchengine Concept Out ! on_auc Coder's Corner Lounge 37 Oct 12th, 2005 9:10 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:19 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC