PHP5.3, PHP5.4 installation ZendOptimizer_PHP tutorial

WBOY
Release: 2016-07-21 14:58:31
Original
931 people have browsed it

Many PHP programs now require the ZendOptimizer environment, but ZendOptimizer has been supported after PHP5.2. So what should I do? Zend will not do this. It turns out that ZendOptimizer has been officially changed to Zend Guard Loader since PHP5.3.

Zend Guard Loader is released, and Zend Optimizer will no longer be updated, and due to the large difference, when using Zend Guard to encrypt code, you will be prompted whether to use php5.3. If you use 5.3, the code will not be able to be used in php5. 2 runs on.

Zend Guard Loader Installation Instructions
1. Download the Zend Guard Loader package. (Official address: http://www.zend.com/en/products/guard/downloads)

Linux:
x86: http://downloads.zend.com/guard/5.5.0 /ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz
x64:http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-x86_64.tar .gz

Windows:

http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-Windows.zip
2. And extract ZendGuardLoader. so (Linux) or ZendLoader.dll (Windows) to the server.

3. Load ZendGuardLoader and configure PHP.INI
Example:
zend_extension=C:webPHPextZendLoader.dll
zend_loader.enable=1
zend_loader.disable_licensing=0
zend_loader .obfuscation_level_support=3
zend_loader.license_path=
The following are explained one by one:

Note that the Windows version only supports the NTS (non-thread safety) version of PHP5.3, that is, Thread Safety in phpinfo is disabled !

Add the following lines to your php.ini file:

Linux and Mac OS X: zend_extension=
Non-thread safety for Windows of: zend_extension=
4. Add the following line to load ZendGuardLoader:

; Enable loading of encoding scripts. Enabled by default
zend_loader.enable=1
5. Optional: configure ZendGuardLoader

; disable checking authorization (for performance reasons)
zend_loader.disable_licensing=0
; configure obfuscation Level 0 – Obfuscation is not supported
zend_loader.obfuscation_level_support=3
; Configure the path to find the authorization file
zend_loader.license_path=
6. If you use Zend debugger at the same time, please make sure to load Zend guard Loader Then load Zend debugger

7. If you use Ioncube loader at the same time, please make sure to load Ioncube loader before loading Zend guard Loader

8. Restart the Web service.

If you see the following content in phpinfo (different versions may be different):

This program makes use of the Zend Scripting Language Engine:Zend Engine v2.4.0, Copyright ( c) 1998-2011 Zend Technologies
Indicates that the installation has been successful!

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/363807.htmlTechArticleMany PHP programs now require the ZendOptimizer environment, but ZendOptimizer has been supported after PHP5.2, so what should I do? Zend will not do this either. It turns out that ZendOptimizer has been officially changed since PHP5.3...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template