<?php 
/**Developer: Anish Karim C*[thecoderin@gmail.com]*****                       *     *     * 
***FileFor: PHPCodeObfuscator[EXAMPLE FILE]*************                        *   *   * 
***CreatedOn: 17th December 2009*****************************                     * * * 
***Modified On: 25th April 2010 ********************************             * * *  C  * * * 
***************************************************************                   * * * 
***Details: EXAMPLE shows how to setup this*******************                  *   *   * 
***Suggestions and Comments are welcome******************                     *     *     * 
*/ 
 
require("encoder.class.inc"); 
 
$uploadDir = "temp"; //Temporary Upload Directory. 
@mkdir($uploadDir,0777); 
$name = $_FILES['source']['name']; 
if(!empty($name)) 
{ 
    $name=$uploadDir."/".$name; 
    if(move_uploaded_file($_FILES['source']['tmp_name'],$name)) 
    { 
        $code = new PHPEncoder(); 
//        $code->mode="uncomment"; // Only removal of comments from php script 
//        $code->mode="obfnorm";    //Normal Obfuscation --using deflate and base64functions. 
        $code->mode="obfhard";    //Hard Obfuscation --using a recursive function for non-reversable output 
        $code->filename=$name; 
        if(!($code->encode())) 
        { 
            echo $code->error; 
        } 
        unlink($name); // We are not storing any scripts. 
    } 
    else echo "Unable to upload File"; 
}else echo "No file Uploaded"; 
exit(); 
?> 
 
 |