Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Er. Rochak Chauhan  >  PHP Obfuscator  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example Script
Class: PHP Obfuscator
Obfuscate PHP as base64 encoded strings
Author: By
Last change:
Date: 2008-10-27 05:11
Size: 423 bytes
 

Contents

Class file image Download
<?php
include_once("PhpObfuscator.inc.php");

$fileName="info.php";

$obfuscator=new PhpObfuscator();
$obfuscatedFile=$obfuscator->obfuscate($fileName);

//debug mode
if($obfuscator->hasErrors()){
    
$errors=$obfuscator->getAllErrors();
    echo 
"<pre>";
    
print_r($errors);
}
else {
    print(
"<p><u>$fileName</u> was successfully obfuscated as <a href='$obfuscatedFile'><strong>$obfuscatedFile</strong></a></p>");
}
?>