+ Reply to Thread
Results 1 to 9 of 9

Thread: Login with PHP

  1. #1
    seasidekarate is offline x10Hosting Member seasidekarate is an unknown quantity at this point
    Join Date
    Aug 2009
    Posts
    9

    Question Login with PHP

    How can I create a working PHP login on x10 hosting? For the server host do I use Chopin or a different one? Could anybody help me do this, with a tut or something? Thanks so much.

  2. #2
    jtwhite's Avatar
    jtwhite is offline Community Advocate jtwhite is on a distinguished road
    Join Date
    May 2009
    Location
    TN, USA
    Posts
    1,381

    Re: Login with PHP

    Yes you can make login scripts. I would be glad to help you. For the server, I think you're talking about MySQL host? You would use "localhost"
    If I have helped you, please add to my reputation () on the bottom left corner of this post.
    jtwhite.me - Visit my site :D

  3. #3
    xav0989's Avatar
    xav0989 is offline Community Public Relation xav0989 is just really nice
    Join Date
    Jul 2008
    Location
    ifk
    Posts
    4,438

    Re: Login with PHP

    To write a PHP login script, you first need to know what session are. Once that is covered, you can read tutorials on how to create a login system: http://www.phpeasystep.com/workshopview.php?id=6 http://www.weberdev.com/get_example-3927.html
    Xavier L | Community Public Relations Manager (Free Hosting Support)
    █ Yes, my position is too cool to even exist!
    How am I helping? Rate this post by clicking the icon below! (this is even better than "liking" a post)
    Terms of Service | Acceptable Use Policy | x10Hosting Wiki

  4. #4
    seasidekarate is offline x10Hosting Member seasidekarate is an unknown quantity at this point
    Join Date
    Aug 2009
    Posts
    9

    Post Re: Login with PHP

    ok so localhost. But when editing sql, How do I go about that? and the creation of databases. Does anybody have a code for a login and register with logout? I know it is a lot to ask, but I would love to know.

  5. #5
    Artheido's Avatar
    Artheido is offline x10Hosting Member Artheido is an unknown quantity at this point
    Join Date
    Jul 2009
    Location
    London, England
    Posts
    13

    Re: Login with PHP

    Quote Originally Posted by seasidekarate View Post
    ok so localhost. But when editing sql, How do I go about that? and the creation of databases. Does anybody have a code for a login and register with logout? I know it is a lot to ask, but I would love to know.
    Before you dive right in, I suggest you read up on MySQL, PHP and server-sided scripting in general.

    Login scripts can get a bit confusing if you type it up from the top of your head.

    I suggest learning the basics from this site. And then maybe starting off with an open-forum? Also, check out the code behind some free blog/forum software like SMF etc. they help you gain a better understanding of how Login systems work.

    Oh and check out the documentation for PHP and MySQL so you know what you have at hand.

    I'm a newbie at MySQL and PHP, I've been reading most of the time. Just started actually coding... an open-forum a few days ago ;)

    You can always expand it later to include a login system.
    | BLOG | TWITTER |

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

    Re: Login with PHP

    Note that many of the above tutorials use outdated or deprecated PHP features, such as session_register(), $HTTP_SESSION_VARS and the old MySQL driver. These days you mostly need session_start(), $_SESSION and unset() (and maybe session_destroy and setcookie) for persistent session data and PDO for database connections. I tried to find a decent authentication tutorial, but haven't found one yet.
    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.

  7. #7
    xav0989's Avatar
    xav0989 is offline Community Public Relation xav0989 is just really nice
    Join Date
    Jul 2008
    Location
    ifk
    Posts
    4,438

    Re: Login with PHP

    Quote Originally Posted by misson View Post
    Note that many of the above tutorials use outdated or deprecated PHP features, such as session_register(), $HTTP_SESSION_VARS and the old MySQL driver. These days you mostly need session_start(), $_SESSION and unset() (and maybe session_destroy and setcookie) for persistent session data and PDO for database connections. I tried to find a decent authentication tutorial, but haven't found one yet.
    I might create a simple login system tutorial using PHP 5 features, however, my tutorial will probably use my own database connector, UniDB.

    I'll drop you a line when I'll be done. Keep in mind that it could take up to a month or more.
    Xavier L | Community Public Relations Manager (Free Hosting Support)
    █ Yes, my position is too cool to even exist!
    How am I helping? Rate this post by clicking the icon below! (this is even better than "liking" a post)
    Terms of Service | Acceptable Use Policy | x10Hosting Wiki

  8. #8
    seasidekarate is offline x10Hosting Member seasidekarate is an unknown quantity at this point
    Join Date
    Aug 2009
    Posts
    9

    Re: Login with PHP

    Thanks. My email is kevinwcaulfield@yahoo.com. If ya finish ur tutorial please send me the link. Thanks!

  9. #9
    whitebus's Avatar
    whitebus is offline x10 Sophmore whitebus is an unknown quantity at this point
    Join Date
    Aug 2007
    Location
    Sturgeon Falls
    Posts
    115

    Re: Login with PHP

    I came across this article yesterday, which I thought you might find interesting...

    http://www.phpbuilder.com/columns/ma...009172009.php3

    hope it helps.
    --rw

+ Reply to Thread

Similar Threads

  1. working with a PHP login system script...
    By rufussweetwater in forum Programming Help
    Replies: 11
    Last Post: 07-01-2009, 08:02 AM
  2. problems with Login page (PHP, mySQL}
    By digitalimages in forum Programming Help
    Replies: 7
    Last Post: 05-31-2009, 12:16 PM
  3. currently have an application pending php
    By biomasti in forum Free Hosting
    Replies: 1
    Last Post: 09-03-2008, 01:58 PM
  4. php login system help...
    By Agenator in forum Programming Help
    Replies: 7
    Last Post: 04-13-2008, 08:43 AM
  5. Sigo con problemas con phpbb2
    By reciecho in forum Soporte
    Replies: 7
    Last Post: 10-20-2007, 06:28 PM

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