开发者

Can you stop your PHP Code from being delivered to your Client just like JavaEE and .NET?

Can you stop your PHP Code from being delivered to your Client just like JavaEE and .NET? As in JavaEE we can compile all our classes into .class extensions and all .jsp pages calling backend (business logic) beans can access those pages while no person can acccess or alter it.

Similarly in .Net we can compile our 开发者_开发问答whole ASP.net website (Business Logic) classes into .dll files and again no one can access our code.although we have to ensure Obfuscation process also in both cases.

But what to do in the case of PHP?

Can anyone tell?


You can obfuscate PHP code and you can put it into executable Phar archives, but that's about it.


PHP isn't delivered to the 'client' (meaning the computer that's displaying the webpage). It's 'transformed' into HTML on the server (this is a very simple explanation).

If by client you mean, "Someone you're producing a product for that you don't want to see the code": The simple answer is, don't turn over the website to anyone else.

Of course, at that point is PHP really your best option?


Depending on who your clients are (i.e. if they can afford it), you can possibly use Zend Guard http://www.zend.com/en/products/guard/ which brings additional benefit of increasing performance a bit.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜