using ioncube is easier then using zend optimizer. bcoz for installing zend optimizer you must have such privilege. however, if you don't have such privileges to install ioncube extension, you may simply put ioncube libraries in the document root of where the encoded files are stored. more info:
http://www.ioncube.com/loaders.php
http://www.ioncube.com/loader_installation.php
whmcs.com has a such licensing solutions too.
Best Regard,
Raju
------------------------
http://hungrycoder.xenexbd.com - For novice.
ÂIt seems you're looking for two distinct solutions: source code obfuscators, and license management.
As of this writing, the "best" obfuscator for PHP is Ioncube. However, it does have a few drawbacks. In order to use it, you must purchase a license (not exactly cheap). It has deployment issues too. The end-user must have the ioncube libraries (freely distributed, may become an issue on a shared hosting environment, but most hosts have it pre-installed) On the plus side, ioncube encoded files are pretty hard to decode - pretty much unheard of (some crackers are taking advantage of its exclusivity and making a brisk business - they claim to be able to de-ioncube .... in exchange for a hefty sum).
You may also consider zend encoder - but it's very easy to dezend the encoded scripts. Several dezenders (win32) exist which can decode and reproduce the original script with a high accuracy. Like ioncube, your end-user will have to have the zend binaries installed.
However, there are a few windows based (freeware) obfuscators for PHP - most of them have a few tricks up the sleeves.... like renaming the variables, function names etc to random characters, removing pretty formatting and some more - the resulting script files will not be very legible.
Nothing is full-proof though - by encrypting or obfuscating your code, you may be able thwart a few casual hackers, but you don't have much choice against experienced, determined crackers.
As for licensing solution, you may look at these (commercial) solutions:
http://solidphp.com/
http://www.phplicengine.com
You'll find a few more on google. Almost all of these protection schemes are a big joke - they can be circumvented quite easily.
--- In phpexperts@yahoogroups.com, maSnun <masnun@...> wrote:
>
> Hello Experts,
>
> The project I am currently working for demands me to enable some sort of
> licensing and copy-proof techniques. My service buyer wants to sell the
> script.
>
> Any idea how this can be achieved? I think partial code obfuscation could be
> the solution. Any good PHP code obfuscation tool for Ubuntu 9.04?
>
> Thanks and Regards,
>
> --
> Abu Ashraf Masnun
> Grad Student, BBA,
> Khulna University.
> http://masnun.com
>