Database Login Creation..

Discussion in 'Web Design and Development' started by jdl8422, Jan 16, 2008.

  1. jdl8422 macrumors 6502

    jdl8422

    Joined:
    Jul 5, 2006
    Location:
    Louisiana
    #1
    I have a website and I want to make a login page separate from the site. The page is only going to be know by me and will require a username and password. I want to backup some files for work and be able to access them and download them when away from my computer. It does not have to be graphical at all, purely functional. I want to be able to login and access the files similar to the way my folders are setup on my local computer. I know there will be some php for the login and whatnot I just do not know where to start. Any help will be appreciated.
     
  2. sord macrumors 6502

    Joined:
    Jun 16, 2004
    #2
    If its just for you, you may want to look into using a .htaccess file. Your webserver will handle the authentication for you and you wont need to bother doing any programming. Otherwise you will need a database and programming experience.

    If you want to do it in PHP, try googling for things like: php login tutorial
     
  3. jdl8422 thread starter macrumors 6502

    jdl8422

    Joined:
    Jul 5, 2006
    Location:
    Louisiana
    #3
    I think I can handle the the login page, its the other page, with all the files on it that I am worried about. Where could I find something on that?
     
  4. Nugget macrumors 65816

    Nugget

    Joined:
    Nov 24, 2002
    Location:
    Houston Texas USA
    #4
    This is excellent advice. It's also going to be (most likely) much more secure than some login page you've cobbled together only half-understanding what you're doing. There are about ten trillion ways to screw up a login page so that it's not effective or secure and even the best developers get it wrong with some regularity.

    Stick with password protecting via .htaccess and you'll have it up and running in about five minutes, securely and easy to manage.

    Authentication, Authorization, and Access Control in Apache

    Edit: For access the files, what you want may be as simple as enabling Directory Indexing in Apache for that directory. (Look into turning on FancyIndexing for a directory)
     
  5. jdl8422 thread starter macrumors 6502

    jdl8422

    Joined:
    Jul 5, 2006
    Location:
    Louisiana
    #5
    you said 5minutes, I feel like a complete moron. I do not even know where to start
     

Share This Page