Home  >  Article  >  Backend Development  >  Installing the ZendOptimizer extension for PHP5.3 or above_PHP tutorial

Installing the ZendOptimizer extension for PHP5.3 or above_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 09:59:541067browse

Installing the ZendOptimizer extension for PHP 5.3 and above

This article mainly introduces the method of installing the ZendOptimizer extension for PHP 5.3 and above. It is very detailed and recommended to friends in need. For reference.

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 starting from PHP5.3, ZendOptimizer has been officially changed to Zend Guard Loader.

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 run on php5.2. .

Zend Guard Loader Installation Instructions

Download 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

And extract ZendGuardLoader.so (Linux) or ZendLoader.dll (Windows) to upload to the server.

Load ZendGuardLoader and configure PHP.INI
Example:

The code is as follows:


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:

The code is as follows:


;Linux and Mac OS X:
zend_extension=
;Windows not thread-safe:
zend_extension=

Add the following line to load ZendGuardLoader:

The code is as follows:


;Enable loading of encoding scripts. Enabled by default
zend_loader.enable=1

Optional: Configure ZendGuardLoader

The code is as follows:


;Disable checking authorization (for performance reasons)
zend_loader.disable_licensing=0
;Configure obfuscation level 0 - no obfuscation supported
zend_loader.obfuscation_level_support=3
;Configure the path to search for authorization files
zend_loader.license_path=

If you use Zend debugger at the same time, please make sure to load Zend guard Loader and then load Zend debugger

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

Restart the web service.

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

The code is as follows:


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!

The above is the entire content of this article, I hope you all like it

Please take a moment to share the article with your friends or leave a comment. We will sincerely thank you for your support!

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/975124.htmlTechArticleInstalling the ZendOptimizer extension for PHP 5.3 and above. This article mainly introduces the method for installing the ZendOptimizer extension for PHP 5.3 and above. , very detailed, recommended to friends in need for reference. ...
Statement:
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