This class can encode GIF or JPEG image files in the form of PHP script file that serves the original files when it is executed.
The class can handle a Web form for uploading the image files.
After receiving the uploaded files, the class generates a PHP script that contains PHP statements for decoding and outputting the image files that are encoded by this class using base64 algorithm.
The class features:
- Support binary files with the file name extensions .jpg and .gif
- Apply several types of constraints to the uploaded files
- Configurable path for the output PHP file
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.
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.
This class can obfuscate and compact PHP source code files.
It can process a PHP source code file and replace characters in text strings by the corresponding hexadecimal representation, making the code harder to read and understand what it does.
It can also compact the PHP source code files by eliminating comments, white spaces and empty line, making the output smaller and even harder to read.