Location: PHPKode > scripts > PHP-Obfuscator > php-obfuscator-1072/backend.php
<?php
/**Developer: Anish Karim C*[hide@address.com]*****                       *     *     *
***FileFor: PHPCodeObfuscator[EXAMPLE FILE]*************                        *   *   *
***CreatedOn: 17th December 2009*****************************                     * * *
***Modified On: xxth XXXXXX 2009 *******************************             * * *  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 --encoded using base64 function.
		$code->mode="obfhard";	//Hard Obfuscation --using deflate and base64functions.
		$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();
?>
Return current item: PHP-Obfuscator