adamjones Posted October 12, 2008 Share Posted October 12, 2008 Ok. So I've made a CMS, and i have an install page, with a serial number. The user is on the installer, and has to enter a valid license key to complete the installation, which are stored in my database. How would I get the PHP installer file to connect to my database? Change the host from localhost to http://www.mywebsite.com ? Any help would be great. Quote Link to comment Share on other sites More sharing options...
genericnumber1 Posted October 12, 2008 Share Posted October 12, 2008 You wouldn't want to do it that way because it would be giving out your username/password, but you could create a script on your website that checks your database and then tells the person querying whether it is a valid license key. Of course there are drawbacks and insecurities in this method, but it's much safer than giving out your username and password to your database. Quote Link to comment Share on other sites More sharing options...
adamjones Posted October 12, 2008 Author Share Posted October 12, 2008 Right. So, on the installer, id set the license key form to post to 'http://mysite/checkkeys.php', or something, and on 'checkkeys.php' id connec tto my database? Right? Quote Link to comment Share on other sites More sharing options...
genericnumber1 Posted October 12, 2008 Share Posted October 12, 2008 Yes, that is probably the simplest method. Quote Link to comment Share on other sites More sharing options...
adamjones Posted October 12, 2008 Author Share Posted October 12, 2008 Ok, thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.