Bookmark and Share
Download Free Software Tools. Get freeware portable and installable applications

Bcompiler GUI

Main window of Bcompiler GUI, a php compiler.
Version: 
1.1
OS: 
Linux
OS: 
Windows

Compile and obfuscate your PHP scripts with Bcompiler GUI, a freeware compiler for Windows and Linux, based on: Bcompiler, a PHP bytecode compiler.

This development tool can easily encode and obfuscate your PHP scripts making reverse engineering difficult. You can distribute your software applications made in PHP without any worries at all. Bcompiler GUI comes in two versions, one for Linux and one for Windows. Useful information about Windows users can be found below. A guide for Linux and Windows users can be found at TrustFm's site, at our related links.

Requirements

1) A web server is needed.

An easy solution is to use Xampp. Just download, install it and use the XAMPP Control Panel, "xampp-control.exe", to start/stop server or install/uninstall services.

2) Enable bcompiler on your webserver.

a) Start apache and MySQL using XAMPP Control Panel and open the browser at the address : "localhost/xampp"
Then hit the "phpinfo()" link and get important information like the PHP version.

b)Install Xdebug
-Download Xdebug dll (notice that you have to know your PHP version from phpinfo)
-Open "xampp\php\php.ini" and make these changes in order to disable Zend optimizer and use Xdebug instead :

[Zend]
;zend_extension_ts = "E:\YOUR_PATH\xampp\php\zendOptimizer\lib\ZendExtensionManager.dll"
;zend_extension_manager.optimizer_ts = "E:\YOUR_PATH\xampp\php\zendOptimizer\lib\Optimizer"
;zend_optimizer.enable_loader = 0
;zend_optimizer.optimization_level=15
;;zend_optimizer.license_path =
;; Local Variables:
;; tab-width: 4
;; End:

[XDebug]
;; Only Zend OR (!) XDebug
zend_extension_ts="E:\YOUR_PATH\xampp\php\ext\php_xdebug.dll"
xdebug.remote_enable=true
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_enable=1
xdebug.profiler_output_dir="E:\YOUR_PATH\xampp\tmp"

- Now do the same thing at the file "xampp\apache\bin\php.ini"

- Put the php_xdebug.dll at the "E:\YOUR_PATH\xampp\php\ext\php_xdebug.dll"

If you have problems with apache (errors like dll not found) then you should download another version of xdebug.dll (always rename it to php_xdebug.dll) from xdebug.org

- Stop and restart xampp (apache+MySQL). Under "localhost/xampp/phpinfo.php" you should now find the xdebug.

c)Install bcompiler
- Go to "xampp\php\php.ini" and uncomment : extension=php_bcompiler.dll
- Do the same for the file "xampp\apache\bin\php.ini": extension=php_bcompiler.dll
- Stop and restart xampp (apache+MySQL). Under "localhost/xampp/phpinfo.php" you should now find bcompiler.
-Now you are ready to use Bcompiler GUI under Windows!

3) A web browser is needed. Firefox is recommended.

How to use Bcompiler GUI

1) First, start apache and MySQL.
2) Select your webserver root e.g c:\xampp\htdocs\
3) Select your PHP project to compile (website root). This must be under the webserver root, for example : c:\xampp\htdocs\mysite
4) Now choose PHP files that you want to be compiled. By default they are all selected.

Please notice that the Compiled project will be generated at :
/opt/lampp/htdocs/mysiteCompiled (under Linux)
c:\xampp\htdocs\mysiteCompiled (under Windows)
Also notice that under Linux you have to CHMOD 777 the /opt/lampp/htdocs/mysiteCompiled directory and all the underneath subirectories too.

5) Press the Compile button.
6) During compilation you might get warnings like "Warning: fopen(index.php)" In this case make sure that "/opt/lampp/htdocs/mysiteCompiled" is CHMOD 777 and then just reload the webpage with firefox. Url should be something like: "localhost/mysiteCompiled/CompileScript.php"
7) If you successfully finish compilation then it is time to test your compiled site at :
"localhost/mysiteCompiled/"
(or just hit the link at the 'all done' page.)
8) Now, delete the "CompileScript.php" script.
9) All done !

Installation info: 

For a windows portable installation download "BcompilerGUI win.zip" and extract it into a folder of your choice. Then run "BcompilerGUI.exe".

Article version: 
1.0
No votes yet

Top rated

Application Rating
Free Download Manager 10
HxD 10
MiKTeX 10
VirtualBox 10
VDownloader 10