Page 1 of 1

Validating a serial code from another Database

Posted: Tue Mar 15, 2005 6:56 am
by dicon
Hi there,

A bit of a complex question but i am sure that you professionals out there will know :) basically i have a ready made website which i sell onto businesses in which they pay a annual license fee instead of paying for the website itself. What i want to do is supply a license key to the user who puts it into their control panel. I am looking for some php code that will stop the site from working without the license fee or if the license key is entered the website then validates the key by checking the number against ones entered on a different mysql database on a different website. If the key is invalid or hasent been renewed then it stops the website from working.

Am i asking for too much or is it easier than it sound?
Thanks in advance
dicon

Posted: Tue Mar 15, 2005 7:09 am
by n00b Saibot
you may implement this by having a script residing at the database side which could get you the reg. key which you can compare with site's reg. db to see if the site is registered or not. if not, then site is blocked. :)

Posted: Tue Mar 15, 2005 7:13 am
by dicon
thanks nOOb, would you be able to provide me with a sample script as i am pretty new to php.

Cheers