I think both responders misunderstood your question.
Did you mean "how do I stop someone who buys my PHP script from copying the source code and selling it"?
Or did you mean how do I stop a visitor to a PHP backed website from reading my source code?
If the first, that's a good question, and you can't. Zend are supposed to be working on a compiler, though.
If the second, then as long as your web server is properly configured then visitors can't read your code. One tip, rename all included files to file.inc.php or else get your server to send *.inc files with PHP.
Paul