Last active
December 10, 2015 13:59
-
-
Save kejyun/4444426 to your computer and use it in GitHub Desktop.
using phpCodeZip.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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