Home > Article > Backend Development > Installing the ZendOptimizer extension for PHP5.3 or above_PHP tutorial
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:
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:
Add the following line to load ZendGuardLoader:
The code is as follows:
Optional: Configure ZendGuardLoader
The code is as follows:
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:
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!