Need some help, PHP + MySQL authentication
Posted: Thu Sep 13, 2007 6:19 am
Ok, hello all. I'm currently developing an application, not for free but it's for lets say, people that have earned the right to use it. The problem is, this type of program is in high demand, so I need to authenticate it so it doesn't get spread about and eventually breaks because of abuse(no, it isn't a keylogger). So, I'm turning to PHP. I cannot code brilliant in PHP, and my past authentication systems have been saving to a text file and doing a LOT of manual work to see if someone has been spreading the program, so I've come here.
So, what does this authentication system do? I will use something similar to cURL to check if the page "http://www.bla.com/blah.php?authu=Usern ... y=UMNJGFDS" returns "true", or a string of my choice, I can do everything up to the database part. I would like preferably, the code(if not, guides or an explanation of how to do it) so I can submit a username/password(to add an auth) to the database, and the code to check the database if the username/password exists, if so, it will log their username, the time, their ip, and the uniquePCKey to a database table, and finally, the code to retrieve all logs from the username/password from the table so I can display it like this(parsing isn't needed, I can do this) -
Username = Bla
Total logins = Bla
Unique Key = Bla
IP's used =
192.168.1.1
192.168.1.2
192.168.1.3 etc.
Cheers,
Niall.
So, what does this authentication system do? I will use something similar to cURL to check if the page "http://www.bla.com/blah.php?authu=Usern ... y=UMNJGFDS" returns "true", or a string of my choice, I can do everything up to the database part. I would like preferably, the code(if not, guides or an explanation of how to do it) so I can submit a username/password(to add an auth) to the database, and the code to check the database if the username/password exists, if so, it will log their username, the time, their ip, and the uniquePCKey to a database table, and finally, the code to retrieve all logs from the username/password from the table so I can display it like this(parsing isn't needed, I can do this) -
Username = Bla
Total logins = Bla
Unique Key = Bla
IP's used =
192.168.1.1
192.168.1.2
192.168.1.3 etc.
Cheers,
Niall.