Thread: Ok, my teacher wants me to make a site........

  1. #1
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427

    Ok, my teacher wants me to make a site........

    She wants me to make a math site, which has log in and things like that this. I don't want want to run a server on my machine, so I got to thinking and asking around. I was thinking that I could make a Java Appler (or something, I don't know Java) which would have some user names and passwords and if you type one of these your password would be correct and you'll get in. What I was thinking is have this Applet run everytime the page is loading and have it loop until one these passwords is created and then if it's correct finish loading the page, otherwise after a few tries you would be redirected to nopassword.html......do you think this is possible?
    There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!

    "...The only real game I thank in the world is baseball..." --Babe Ruth

    "Life is beautiful"-Don Corleone right before he died.

    "The expert on anything was once a beginner" -Baseball poster I own.


    Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    Though I don't know much about it, I would suggest using php. It's very similar to C. If you like, you can easily have a database in the background. There are tons of tutorials around.

    www.php.net
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  3. #3
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    For password varification, you would be better of with some sort of serverside programming (Your program or script sits on the server and decides what pages to make available to the browser - just like this site).

    The problem you have is that many servers able to do this are not cheap......you will probably find a few freebies if you try though...

  4. #4
    Registered User Sekti's Avatar
    Join Date
    Feb 2002
    Posts
    163

    php

    use php...
    http://www.php.net
    Has a tutorial there
    +++
    ++
    + Sekti
    ++
    +++

  5. #5
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427
    This is what I was thinking, make an applet that loads when the page is loading up and it would stop the page from loading (it would start looping) until a password is entered, if the right password is the page continues loading if the worn password is typed after about 3 tries then you would be redirected to nopassword.htm where there would be a form where people would enter their desired password and username. The passwords would be stored in the Java Applet, people would have to update the password list manually and then have to recompile (?) the code everytime. The other reason why I want to make it an applet is so people won't be able to view the passwords which would be stored in the applet. Think this would work? Could you give me a link to a Java compiler. Because I don't want to set up a server or something like that right now.
    There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!

    "...The only real game I thank in the world is baseball..." --Babe Ruth

    "Life is beautiful"-Don Corleone right before he died.

    "The expert on anything was once a beginner" -Baseball poster I own.


    Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.

  6. #6
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,212
    People would be able to download the Java Applet and see the passwords within the applet.

  7. #7
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427
    oh damn........you serious? Can't you disable that?
    There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!

    "...The only real game I thank in the world is baseball..." --Babe Ruth

    "Life is beautiful"-Don Corleone right before he died.

    "The expert on anything was once a beginner" -Baseball poster I own.


    Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.

  8. #8
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427
    How would people download this Java Applet because I tried downloading some of the Java Applets I saw online and couldn't.
    I would disable right click on the page, so you couldn't just right click and download.
    Last edited by incognito; 02-27-2002 at 06:01 PM.
    There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!

    "...The only real game I thank in the world is baseball..." --Babe Ruth

    "Life is beautiful"-Don Corleone right before he died.

    "The expert on anything was once a beginner" -Baseball poster I own.


    Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.

  9. #9
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427
    You also have to remember some of these kids don't even know what Java is.
    There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!

    "...The only real game I thank in the world is baseball..." --Babe Ruth

    "Life is beautiful"-Don Corleone right before he died.

    "The expert on anything was once a beginner" -Baseball poster I own.


    Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.

  10. #10
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427
    Ok Sorry I know this is not a Java site I will try to keep the questions about Java to a mininum, but could you please give me a link to a good Java compiler download page.
    There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!

    "...The only real game I thank in the world is baseball..." --Babe Ruth

    "Life is beautiful"-Don Corleone right before he died.

    "The expert on anything was once a beginner" -Baseball poster I own.


    Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.

  11. #11
    A Banana Yoshi's Avatar
    Join Date
    Oct 2001
    Posts
    859
    >>I would disable right click on the page, so you couldn't just right click and download.

    It will not work.

    If a person's smart enough to click the left one, hold, and then click on the right one (1+2=3)and then releasing the left one, he/she has got it. Besides, this thing only works for IE.
    Yoshi

  12. #12
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Sorry to burst your bubble, but for someone to view your applet, they have already downloaded it....and you can dissasemble java in about 10 seconds and find the password......Should you continue on this line? - It depends on the skills of the people using the site

  13. #13
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    Server: apache, free at www.apache.org

    Server side scripting language: php, free at www.php.net

    Will run on Windows or Linux.

    For password verification, you need serverside scripting. php, asp, aspx, jsp or something else. For serving it, you need a webserver: IIS, Apache or something else. The cheapest and well documented combination is Linux/Apache/Php. If you don't like Linux, you can run it on windows as well.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  14. #14
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427
    Well I told her about the vulnerability of this thing and she told me that she didn't care........besides most of theses kids haven't even heard of Java.
    There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!

    "...The only real game I thank in the world is baseball..." --Babe Ruth

    "Life is beautiful"-Don Corleone right before he died.

    "The expert on anything was once a beginner" -Baseball poster I own.


    Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.

  15. #15
    bobish
    Guest
    you know right clicking isn't the only way to save you could also press ctrl+s or go to file/save in your browser. at any rate don't expect to have this out by next week try learning some web design before making a web page hosting isn't to bit a problem for one thing see if you can host it on yours schools server if not there are plenty of other free web host but most of them require you to put up a banner.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. trying to make a KenGen ( for a game tool )
    By lonewolfy in forum C# Programming
    Replies: 4
    Last Post: 03-28-2007, 08:23 AM
  2. how to make a windows application
    By crvenkapa in forum C++ Programming
    Replies: 3
    Last Post: 03-26-2007, 09:59 AM
  3. Win32 Common Controls in C++, how do i make and use them?
    By C+noob in forum Windows Programming
    Replies: 6
    Last Post: 01-09-2006, 11:53 AM
  4. want to make this small program...
    By psycho88 in forum C++ Programming
    Replies: 8
    Last Post: 11-30-2005, 02:05 AM
  5. 'functions' in make?
    By mart_man00 in forum C Programming
    Replies: 1
    Last Post: 06-21-2003, 02:16 PM