hi i want to hide my php code. i don't want any other to view my code and copy it. So is there a way to do this?

PHP is server side code. It's hidden by default.

not that. i mean some one who opens up my .php files from server... or program i'm giving them . some kind of encryption method or something?

There are others like Zend and Source Guardian but this one is at least as good as the other options. They also offer an online service which is pay-as-you-go so you don't have to buy the software up-front. The free options (and some of the commercial ones) are obfusticators and they can be broken quite easily. Ioncube, Zend and Source Guardian all produce 'byte code' which isn't quite compiled but it is an intermediate step beyond the original source code. If you are thinking of selling a PHP product, then you also have to use some sort of license software (Ioncube also has one of those). Otherwise, people can redistribute your 'byte code' version and you won't have any control over them.

http://www.ioncube.com/

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.