BenCoder is a php script written to simplify the use of the bcompiler functions provided by the PHP development team. In order to use BCOMPILER, you will need to have a server that already has the packages installed, or the access to do so.
You can find BenCoder script here:
http://bencoder.urdada.net/
To install bcompiler, you will need to first install the following required packaged:
- PHP 4.3 or higher
- PHP-PEAR
- PHP-DEV
- BZIP2
- GCC (or a comperable C compiler)
You will also need access to install any dependancies that may be be required for your particular environment.
The official bcompiler website can be found here, with instructions for installation and function review:
http://us.php.net/manual/en/book.bcompiler.php
The following instructions were found from the process of installation on a fresh server running Fedora v10 with Apache 2.x and PHP v5.x
- Make sure you're logged into a privilidged account (ie - root)
- Install the above mentioned required packages
In Fedora - use the GNOME tool for Add/Remove
Otherwise use apt-get, package manager, yum, or emerge depending on your system - Download / Install bcompiler.
> pear install bcompiler
or check this URL for the latest file version (http://pecl.php.net/get/bcompiler) and use
> pecl install channel://pecl.php.net/bcompiler-0.8
This process should end with a Compilation / Build OK message. If not, read the output for errors and learn... - Update your PHP.INI file to include the bcompiler.so extension
If you don't know where this file is...
> cd /
> find -name "php.ini"
> vi /{path}/php.ini
Find the Extensions section: [ESC] + ? + extension= + [ENTER]
Add the line: [A] + extension=bcompiler.so + [ENTER]
Save & Close: [ESC] + wq + [ENTER] - Restart Apache
> httpd -k restart - Try Running BenCoder
> php bencoder.php
If you were successful, BenCoder should print some instructions for usage. - Simple Test... Take some PHP files, put them into a folder called IN, then run this command:
php bencoder.php -s IN -0 OUT -f -r -c -bz2
-s = Source Folder
-o = Output Folder
-f = Overwrite Existing
-r = Run Recursively
-c = Copy files not processed (ie - non-php files)
-bz2 = Compress Encoded Files with BZip2
You should receive output indicating the encoding was completed.
Congrats! You are one of a few that can now compile your own code.
Now if someone can just come up with a seeding token system for code authentication we might have somethin'