PHP LOGIN SCRIPT NEEDED....

7 replies
HI friends,

i am new to PHP coding and i have tried several PHP login scripts and i have followed several tutorials and everytime it ends with error...

can some one guide me to get the working PHP login script..

i am using WAMP......PHP version is 5.3.5
#login #needed #php #script
  • Profile picture of the author K Meier
    How about you tell us what the error message says, and then post your login script here?
    {{ DiscussionBoard.errors[3900079].message }}
  • Profile picture of the author andrejvasso
    It really depends on what you are trying to do...

    Do you want a login script, which simply blocks access for unauthorized use? Or do you need a "membership" script with various usernames and user priviliges?

    If you simply need want to block access to your website, you will be very happy with this script. I am using it all the time when I would like to block access.

    If you are looking for a membership site, check out amember.

    And additionally, there is the most simple way: add a pw to a dir via your cpanel (or manually create a .htaccess file). (find out more)
    {{ DiscussionBoard.errors[3900172].message }}
    • Profile picture of the author hari12345
      Originally Posted by andrejvasso View Post

      It really depends on what you are trying to do...

      Do you want a login script, which simply blocks access for unauthorized use? Or do you need a "membership" script with various usernames and user priviliges?

      If you simply need want to block access to your website, you will be very happy with this script. I am using it all the time when I would like to block access.

      If you are looking for a membership site, check out amember.

      And additionally, there is the most simple way: add a pw to a dir via your cpanel (or manually create a .htaccess file). (find out more)

      Thanks for your links man will try it out..
      {{ DiscussionBoard.errors[3900316].message }}
  • Profile picture of the author danielharris
    I recommend you to write script yourself. This way you can be 100% sure that there are no exploits available - and it would be harder to brake your protection. Of course you should write it well to make it protected from hackers.

    Regarding the error - tell us what is it and we'll try to help you with it.
    {{ DiscussionBoard.errors[3901537].message }}
    • Profile picture of the author andrejvasso
      Originally Posted by danielharris View Post

      I recommend you to write script yourself. This way you can be 100% sure that there are no exploits available - and it would be harder to brake your protection. Of course you should write it well to make it protected from hackers.

      Regarding the error - tell us what is it and we'll try to help you with it.
      Sorry to say this but I think thats a bad advice:

      -there is no way he is going to write a 100% secure script himself when he has no or just a little coding experience

      -why write a script, which has already been written before?

      Do not try to reinvent the wheel.
      {{ DiscussionBoard.errors[3901750].message }}
      • Profile picture of the author danielharris
        Originally Posted by andrejvasso View Post

        Sorry to say this but I think thats a bad advice:

        -there is no way he is going to write a 100% secure script himself when he has no or just a little coding experience

        -why write a script, which has already been written before?

        Do not try to reinvent the wheel.
        Exploits are available only for public scripts so if he writes script himself - he will still be the only man who knows how to brake this.

        I still think think that it is better to code it myself than use some overloaded thing which suites everyone's needs... If you use the "wheel" which was invented by someone else you possible would not know how it works which is really bad.
        {{ DiscussionBoard.errors[4733918].message }}
  • Profile picture of the author yanceysanford
    Not sure what you are trying to do but I agree don't try to reinvent the wheel. Try using wordpress with s2 members plugin works great for me. Also Joomla has some extentions that work to.

    If you are just trying to learn PHP and MySQL, learning by trail and error is the best way.
    {{ DiscussionBoard.errors[3902221].message }}

Trending Topics