Skip to content

Instantly share code, notes, and snippets.

@kejyun
Last active December 10, 2015 13:59
Show Gist options
  • Save kejyun/4444426 to your computer and use it in GitHub Desktop.
Save kejyun/4444426 to your computer and use it in GitHub Desktop.
using phpCodeZip.php
<?php
//載入函式
include_once('phpCodeZip.php');
//建立加密物件
/**
* example :
* $encryption = new PhpCodeZip('test','test_compiler');
* 請直接指定與compiler.php同目錄的資料夾名稱,不要使用「./test」或「./test_compiler」的資料夾名稱,導致程式出錯
*/
$encryption = new PhpCodeZip('sourceDir','targetDir');
//執行加密
$encryption->zip();
//如此一來,你就可以在targetDir找到經過加密的PHP原始碼
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment