Many PHP programs now require ZendOptimizer environment, but ZendOptimizer has been supported after PHP5.2, then No matter what, 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:
Copy code 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 in your php.ini file:
Copy code 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:
Copy code The code is as follows:
;Enable loading of encoding scripts. Enabled by default
zend_loader.enable=1
Optional: Configure ZendGuardLoader
Copy code 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):
Copy code 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!