Install the ZendOptimizer extension in PHP5.3 or later, and install zend_PHP in php5.3.

Source: Internet
Author: User
Tags ioncube
The ZendOptimizer extension is installed in PHP5.3 and later versions, and zend is installed in php5.3. The ZendOptimizer extension is installed in PHP5.3 and later versions. many PHP programs now require the ZendOptimizer environment to install zend in php5.3. However, ZendOptimizer is supported after PHP5.2. how can this problem be solved, php5.3 install zend

Many PHP programs now require the ZendOptimizer environment, but ZendOptimizer has been supported after PHP5.2. what should I do? Zend will not do the same. Originally, PHP5.3 started to change ZendOptimizer to Zend Guard Loader.

Zend Guard Loader is released, and Zend Optimizer will not be updated. due to the wide difference, when Zend Guard is used to encrypt code, you will be prompted whether to use php5.3, if 5.3 is used, the code cannot be run on php5.2.

Zend Guard Loader installation instructions

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

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: \ web \ PHP \ ext \ ZendLoader. 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 windows only supports PHP for the security (non-Thread-safe) edition, that is, the 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 non-thread-safe:
Zend_extension =

Add the following line to load ZendGuardLoader:

The code is as follows:
; Enable the load encoding script. Enabled by default
Zend_loader.enable = 1

Optional. configure ZendGuardLoader.

The code is as follows:
; Disable check authorization (for performance reasons)
Zend_loader.disable_licensing = 0
; Configuration obfuscation level 0-does not support obfuscation
Zend_loader.obfuscation_level_support = 3
; Configure the path to search for the authorization file
Zend_loader.license_path =

If you use Zend debugger at the same time, ensure that Zend guard Loader is loaded before Zend debugger is loaded.

If you use Ioncube loader at the same time, ensure that you load Ioncube loader before loading Zend guard Loader.

Restart the Web service.

If the following content is displayed in phpinfo (different versions may be different ):

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

The installation is successful!

The above is all the content of this article. I hope you will like it.

Please take a moment to share your article with your friends or leave a comment. Thank you for your support!

Currently, many PHP programs require the ZendOptimizer environment, but ZendOptimizer has been supported after PHP5.2. what should I do ,...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.