2009年11月3日 星期二

使用 bcompiler 來編譯(加密)您的 PHP 原始碼

測試環境:
系統:Windows XP
PHP:5.2.3

安裝步驟:
  1. 請用Goolge大神尋找 php_bcompiler.dll(符合你 PHP 版本的 dll 檔),
  2. 將dll檔放到php放ext的資料夾,
  3. 在 php.ini 新增 extension=php_bcompiler.dll 設定。
 使用方法:(請參考)

<?php
$fh = fopen("example.phb", "w");
bcompiler_write_header($fh);
bcompiler_write_file($fh, "example.php");
bcompiler_write_footer($fh);
fclose($fh);
/* the following should be equivalent:
include "example.php";
and
include "example.phb";
*/
?>

沒有留言: