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. Link to comment https://forums.phpfreaks.com/topic/128095-solved-can-someone-just-clarify-this/ 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. Link to comment https://forums.phpfreaks.com/topic/128095-solved-can-someone-just-clarify-this/#findComment-663338 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? Link to comment https://forums.phpfreaks.com/topic/128095-solved-can-someone-just-clarify-this/#findComment-663344 Share on other sites More sharing options...
genericnumber1 Posted October 12, 2008 Share Posted October 12, 2008 Yes, that is probably the simplest method. Link to comment https://forums.phpfreaks.com/topic/128095-solved-can-someone-just-clarify-this/#findComment-663347 Share on other sites More sharing options...
adamjones Posted October 12, 2008 Author Share Posted October 12, 2008 Ok, thanks. Link to comment https://forums.phpfreaks.com/topic/128095-solved-can-someone-just-clarify-this/#findComment-663350 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.