首頁  >  文章  >  後端開發  >  eaccelerator 使用eAccelerator加密PHP程序

eaccelerator 使用eAccelerator加密PHP程序

WBOY
WBOY原創
2016-07-29 08:39:04813瀏覽

使用eAccelerator 加密PHP程式

複製程式碼 程式碼如下:


# /usr/local/bin/encoder

執行後會看到簡單的使用說明:

複製程式碼 程式碼如下:

Usageage: encoder [options] source_file_name
encoder [options] source_file_name...
encoder [options] source_directory_name...
Options:
-s suffix en files on defen php")
-a
encode all files (no by default)
-l
follow symbolic links (no by default)
-r
encode directories recive (noelector )
-c
copy files those shouldn't be encoded (no by default)
-f
overwrite existing files (no by default)
-w -o target
If you encode only one script then 'target' specifyes an output
file name. If you encode directory or several files at once
then 'target' specifyes an output directory name.
Examples:
encoder some_file.php
encoder some_file.php -o some_encoded_file.php
encoder *.php -o some_dir
. -sphp -sinc -o ~/public_html/y


稍微玩一下應該就知道怎用了...
使用encoder 去對PHP 程式加密編碼,會產生另外一個檔案,你也可以對整個目錄進行轉換,例如:



複製程式碼

程式碼如下:# encoder code -rcf -sphp -sinc - o code_encoded


這個指令會把code/ 目錄下所有的php / inc 結尾的檔案作編碼,並存放到code_encoded 下面,
同時,由於指定了-c 這個選項,其他格式、不需要編碼的檔案,如jpg/gif/html/js 等,

也會原封不動複製一份到code_encoded 下面,這樣方便你直接以這個目錄來提供服務。
選項 -r 含底下所有子目錄
以上就介紹了eaccelerator 使用eAccelerator加密PHP程序,包括了eaccelerator方面的內容,希望對PHP教程有興趣的朋友有所幫助。

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn