I wanted to get some thoughts on selling a PHP application (CMS). I intend on offering a free version that may include ads or be limited in some way. My main concern is how to detect if the user has purchased a license or the paid version or not.
My idea is to have a file (license.php) which will check a variable against one on my database and make sure it matches the domain purchased for. Is this a good idea if the client's server maybe does not have curl enabled or is there another method to do this?
Also once I have set that $licensed = true
, how would I make sure that continues change other things throughout the application. For example, if I had something like this:
if(!$licensed){
showads();
}
I guess there is no way to prevent them from just commenting out that section or modifying it.
I don't have too much of a problem in general with this, but wanted to see if there were any better ways people may have come up with. Thanks!