BTW, you don't need to encrypt the whole script (nobody wants a script that can't be modified or customized, as Mikor mentioned).
You can encrypt only key functions, allow plugins, or use a carefully planned template system. That means that you must create the script knowing beforehand it will be encrypted (partially or not) and include ways for your customers to customize it or adapt it to their needs.