PHP5.3安裝Zend Guard Loader圖文教程,_PHP教程

來源:互聯網
上載者:User

PHP5.3安裝Zend Guard Loader圖文教程,


Zend Optimizer/3.3.3 解密加代碼最佳化,提高PHP應用程式的執行速度,顯著降低伺服器的CPU負載。
Zend Guard Loader/5.5.0/6.0 解密加代碼最佳化,提高PHP應用程式的執行速度,顯著降低伺服器的CPU負載。

PHP 5.3.X 開始 Zend Optimizer 正式被 Zend Guard Loader 取代了。安裝方法有所不同,以下是安裝 Zend Guard Loader的具體方法:

下載地址:ZendGuardLoader-php-5.3-Windows.zip

下載好後解壓壓縮包,找到 ZendGuardLoader-php-5.3-Windows\ZendServer\lib\loader\php-5.3.x 目錄下的 ZendLoader.DLL 檔案,將它放到你的php目錄下ext下:


再編輯php.ini檔案,添加一段代碼(如):

[Zend.loader] zend_loader.enable=1 zend_loader.disable_licensing=1 zend_loader.obfuscation_level_support=3 zend_loader.license_path= zend_extension=”D:\php\ext\ZendLoader.dll” 

儲存php.ini設定檔,重啟apache或者IIS

在你指定的www目錄下建立一個phpinfo()檔案.輸入

<?php echo phpinfo(); ?>

如果探針顯示Zend Guard Loader 表明Zend Guard 已經配置成功;


另附:php5.3不支援ZendOptimizer的解決辦法(Zend Guard Loader)


PHP 5.3 下,Zend Optimizer 已經被全新的 Zend Guard Loader 取代

1. 下載 Zend Guard Loader 壓縮包。(官方下載地址:http://www.zend.com/en/products/guard/downloads)

2. 解壓並提取 ZendGuardLoader.so(Linux)或 ZendLoader.dll(Windows),對應你的PHP版本。

3. 在你的 php.ini 檔案添加下面一行,用來載入 Zend Guard Loader:

Linux 和 Mac OS X: zend_extension = 完整路徑/ZendGuardLoader.so
Windows(非安全執行緒):  zend_extension = 完整路徑/ZendLoader.dll

4. 在 php.ini 額外新增一行,啟用 Zend Guard Loader:

zend_loader.enable = 1

5. 可選:可以在 php.ini 檔案添加以下行到 Zend Guard Loader 配置位置:

;禁用許可證檢查(為了效能的原因)
zend_loader.disable_licensing = 0

;讓 Zend Guard Loader 支援混淆層級。層級在 Zend Guard 的官方詳細文檔。 0 – 不啟用混淆
zend_loader.obfuscation_level_support = 3

;從這個路徑尋找Zend產品授權的產品許可證。欲瞭解更多有關如何建立一個許可證檔案的資訊,請參閱 Zend Guard 使用者指南.
zend_loader.license_path =

6. 如果您使用 Zend debugger,請確保載入 Zend guard Loader。

7. 如果您使用 ioncube loader,請務必在它之前載入 Zend guard Loader。

8. 重新啟動Web伺服器。




http://www.bkjia.com/PHPjc/887350.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/887350.htmlTechArticlePHP5.3安裝Zend Guard Loader圖文教程, Zend Optimizer/3.3.3 解密加代碼最佳化,提高PHP應用程式的執行速度,顯著降低伺服器的CPU負載。 Zend Guard Loade...

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.