PHPCoder is a Web-based frontend to the Turck MMCache encoding functions, which are similar to the Zend Encoder product.
PHPCoder enables you to encode your PHP scripts and applications into non-reversible byte-code, thus preventing users of your programs from viewing or alterting the source code while having full functionality.
Another excellent use for PHPCoder is to encode your applications PHP configuration files, that way someone viewing your source code does not see your databae login and password information.
It also allows you to set restrictions on the encoded scripts, you can lock a script to a particular server IP address, server host name, visitor IP, or even place a time limit on the script so it will expire after a configurable amount of time.
You specify Text, HTML, or PHP code that should be prepended and appended to each file before it is encoded, allowing you to easily and securely implement your own licensing scheme.
It reads a PHP script file, compresses its contents with gzip library, encodes its with the base64 algorithm. Then it generates a new PHP script that decodes and uncompresses the encoded data, and uses the eval function to execute the original script code.
This class is used to encode data being passed between two sources that can be either two pages via URL arguments or by any other data storage media like databases, files or sessions variables.
It works by taking an array of variables and their values and encode it using a private key only known by the server scripts to create a string that represents those variables.
When another page script receives the encoded data, the class can decode it and restore the variables original values using the same server private key.
This way the class can be used pass or store data without the possibility of tampering by the users of a site or any other agent that does not have access to the site scripts.
Encode email address links with character entities
This class creates a mailto: links for the given email address using equivalent character entities that replace the characters of the URLs in the link URL attributes.
This is meant to prevent that e-mail harvesting robots used by spammers to collect e-mail addresses find the e-mail addresses when they are looking for mailto: or @ text, without compromising the ability of the browsers to determine the link URLs correctly. For instance, @ becomes @ .
Despite the class does not provide a solution against e-mail harvesting robots that are able to decode URLs like this, the class still provides a solution with no disadvantages for the reader, as no Javascript is needed, the mailto: link is still usable, and it can still be copied from the Web pages to be pasted anywhere else.
The class also provide optional support for specifying the mailto: link text, CSS class for rendering the link, and additional parameters for predefining the the mailto: link subject and body text.