Results 1 to 6 of 6

Thread: PHP login script

  1. #1
    Join Date
    Sep 2009
    Beans
    158
    Distro
    Ubuntu 12.04 Precise Pangolin

    PHP login script

    I have found a login script I want to use for a website I am making. I have followed the instructions on here but don't know how to actually use the .php files properly. I open the .php file in my browser and it gives me the option of downlaoding it. How do I get it to work? I know you normally need to provide options to a php script, as far as I have seen, but I don't know how to. Thanks
    http://www.youtube.com/watch?v=p9DuG-J0OIE
    The box said 'Windows 7 or better' .... so I installed Linux.
    I5 2500K @ 4.6 GHZ, 5770 stockOC, 902 case, OCZvertexII, 2 1TB seagate RAID0, 16GB @ 1600 MHz

  2. #2
    Join Date
    Apr 2008
    Beans
    164
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: PHP login script

    Quote Originally Posted by gameguy View Post
    I have found a login script I want to use for a website I am making. I have followed the instructions on here but don't know how to actually use the .php files properly. I open the .php file in my browser and it gives me the option of downlaoding it. How do I get it to work? I know you normally need to provide options to a php script, as far as I have seen, but I don't know how to. Thanks
    http://www.youtube.com/watch?v=p9DuG-J0OIE
    assuming you have apache installed, you need to also install the php mod for it.

    Code:
    sudo apt-get install libapache2-mod-php5
    EDIT: for more info than I could give see HERE
    Last edited by BbUiDgZ; August 26th, 2011 at 01:50 PM.
    |AMD Phenom II X4 955|8Gb ddr3 1333|GTS250 1Gb|
    Teeth cut on Redhat, Moved to Debian, Loving Ubuntu.

  3. #3
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: PHP login script

    Quote Originally Posted by gameguy View Post
    Just a heads up, but that script alone is hardly sufficient. First you need the "include" files that have the session class. They're referenced at the very top of the presentation. You'll also need a database to store registered users' information. I've written login systems like the one in that video, but they've involved not only PHP scripting, but browser session cookies, and a PostgreSQL database in the back end. There must be more to this tutorial, no?

  4. #4
    Join Date
    Aug 2011
    Beans
    2

    Re: PHP login script

    Quote Originally Posted by gameguy View Post
    I open the .php file in my browser and it gives me the option of downlaoding it. How do I get it to work?
    http://www.youtube.com/watch?v=p9DuG-J0OIE
    where is this php file located? Sounds like it doesnt run php. If you are using userdir, heres how to solve problem http://ubuntuforums.org/showthread.php?t=1478721

  5. #5
    Join Date
    Sep 2009
    Beans
    158
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: PHP login script

    Quote Originally Posted by radiotehnika View Post
    where is this php file located? Sounds like it doesnt run php. If you are using userdir, heres how to solve problem http://ubuntuforums.org/showthread.php?t=1478721
    Thanks a heap. I just needed to install the mod and then comment out those things as per the link you gave me.
    The box said 'Windows 7 or better' .... so I installed Linux.
    I5 2500K @ 4.6 GHZ, 5770 stockOC, 902 case, OCZvertexII, 2 1TB seagate RAID0, 16GB @ 1600 MHz

  6. #6
    Join Date
    May 2010
    Beans
    72
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: PHP login script

    Just also another heads up this script uses MD5 without a salt, not only is MD5 known to be cryptographically broken but not using a salt is also against security recommendations. You'll probably want to switch it to SHA256 and incorporate a salting mechanism for each user.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •