How can I protect my php application by licence key?

ajax, javascript, jquery, mysql, php

Solution

You're going to struggle with the three banes of licensing:

- Someone smart will just take the code out

- You'll need to license per server or to have the keys circulating on the internet

- Most people will just get a free alternative

To remedy the first one...you can't. PHP is not compiled. the other two are less about code.

Problem

I am developing a chat application in php and i want to sell this over internet. How I can I make it licence protected, that only those person who have bought licence key are able to use it. There will be a different licence for different domain. What how can I achieve this?

Original source