I was thinking of making a commercial application to sell to customers to install on their servers but I wanted to do it with PHP & MySQL.
what should i do to ensure that the source code (& Database) will not be opened nor copied. The most important thing is the code will be hosted on the customer server. And also how to ensure that the customer will not resell the web application (like copying the code & Db to other people)
Thank you
There's a lot of question around PHP code obfuscation / encryption / compilation on SO. Check them out.
There is a number of products to protect PHP code like Zend Guard, ioncube encoder and others.
Related SO questions:
Minify / obfuscate PHP code
Best solution to protect PHP code without encryption
PHP Source Encryption - Effectiveness and Disadvantages
How can you make a PHP application require a key to work?
Can I encrypt PHP source or compile it so others can’t see it? and how?
How to prevent resale of PHP source?