I want to encrypt php code so that others should not modify.
If i run that encrypted php file in the browser its functionality should
work.
I have used few softwares, with those i could encrypt php code but failed to run in the browser as php encrypted code is viewing instead its funtionality.

Can anyone help me...

Thanks
Shastry

Recommended Answers

All 4 Replies

How should others be possible to modify it?

You mean php code.
If i run that file in local

Why would you want to encode php code?
If you trust your clients, you can just give them the code.
Otherwise, run it on your server.
If you really wish to encrypt the php, you can use something like the zend ion encoder (which needs the zend optimizer installed on the server).
For more information, take a look at this stackoverflow post:
http://stackoverflow.com/questions/470409/can-i-encrypt-php-source-or-compile-it-so-others-cant-see-it-and-how
Also, php is run on the server, and cannot be seen at all by the browser.
All the browser sees is the output of the php.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.