Possible Duplicate:
What is the best PHP code encryptor?
Encrypt php code
How do I encrypt my PHP pages so that no-one can read the contents of the source file. It has details like mysql user and passwords in it. Also it would be so that people can’t copy it and start a website just like my one, with no development of their own.
If your server is configured properly, it is virtually impossible for someone to view code. Once a user requests the
phpfile, it is executed on your server and the response text is sent.If you are able to see the source with a web browser, that means your server isn’t configured correctly.