+ Reply to Thread
Results 1 to 6 of 6

Thread: PHP login script

  1. #1
    christine19reyes83 is offline x10Hosting Member christine19reyes83 is an unknown quantity at this point
    Join Date
    Feb 2011
    Posts
    1

    PHP login script

    can you help me how to make a login php i dont know how to put in my site
    Last edited by callumacrae; 02-18-2011 at 03:38 PM. Reason: changed title

  2. #2
    Anna's Avatar
    Anna is offline I am just me Anna is a name known to allAnna is a name known to all
    Join Date
    Aug 2007
    Location
    Sweden
    Posts
    6,569

    Re: help please

    This is a question more suited for "Programming Help", so I'm moving it there.
    Do you have trouble reaching your site?
    Check here first: News and Announcements


    Don't forget that x10hosting has an irc server as well. Come and join the fun
    server: irc.x10hosting.com, main channel: #x10hosting
    There's a lot helpful users there if need help building your site

  3. #3
    lemon-tree's Avatar
    lemon-tree is offline x10 Minion lemon-tree has a spectacular aura about
    Join Date
    Nov 2007
    Posts
    1,420

    Re: help please

    Unless you have an intimate knowledge of the security techniques involved in creating an authorisation script without any loopholes through which your users' data could be compromised, I recommend you look into using one of the many pre-built libraries that do precisely this.

  4. #4
    callumacrae's Avatar
    callumacrae is offline not alex mac callumacrae is just really nice
    Join Date
    Dec 2007
    Location
    Wellesbourne, England
    Posts
    5,162

    Re: help please

    I see from your website that you're attempting to make one yourself.

    You should NOT be using mysql_* - check out PDO or MySQLi

    As lemon-tree said, you need to know quite a bit about security to build a good login script. Of the top ten results on google for "php login script", most of them aren't good at all. Using PDO would reduce the risk of SQL injections, but there are other things to consider, such as brute forcing passwords (which your script currently doesn't make any attempt to stop)

    You should also be using <input type="password" /> for the password field - as it is, anyone looking over my shoulder can see my password.

    Make sure you're using a decent encryption for the password. You probably shouldn't be using md5, as quite a lot of people have broken it.

    ~Callum
    I can customise your phpBB board. Send me a PM.
    lynxphp - info, tutorials and scripts
    "A forum post should be like a skirt; long enough to cover the subject but short enough to keep things interesting."

  5. #5
    callumacrae's Avatar
    callumacrae is offline not alex mac callumacrae is just really nice
    Join Date
    Dec 2007
    Location
    Wellesbourne, England
    Posts
    5,162

    Re: PHP login script

    Also, I edited the title of this thread to something more descriptive. Please make sure the thread title actually describes the issue in the future.

    ~Callum
    I can customise your phpBB board. Send me a PM.
    lynxphp - info, tutorials and scripts
    "A forum post should be like a skirt; long enough to cover the subject but short enough to keep things interesting."

  6. #6
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: PHP login script

    Christine, the thread "What are the top 10 common security risk of a new site? What are the countermeasures?" has links to pages describing common security issues. If you're going to implement your own authentication system, you'd better read over them.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers