Diagram of PHP using the Zend Guard 6.0 encryption Method Tutorial

Source: Internet
Author: User
Tags download zend ini php server php script php source code versions zend zend server

Here is a simple way to use Zend Guard to encrypt our PHP source code.

The current version of Zend Guard is 6.0, download address: http://www.zend.com/en/products/guard/downloads

Detailed English document description is here: http://files.zend.com/help/Zend-Guard/zend-guard.htm#install.htm

"Note": Use Zend Guard encrypted code when executing PHP script need to load decoder: Zend Guard Loader, note the consistency of the version.

See the last section of this article for a method to set up Zend Guard Loader.

Currently, Zend Guard 6.0 supports php5.3 and php5.4 two versions.

Open the Zend Guard 6.0 interface as follows:

If you are not registered, the display is Trial version trial version. Mac system is not cracked version of, but win under is some, how to find, you understand.

When the trial version is encrypted, it prompts:

* * WARNING * *

Working in trial mode-cannot find the License File:zend_guard.zl (path is:/applications/zend guard 6.app/contents/res ources/plugins/com.zend.guard.core.resources.macosx_6.0.0.201305051344/resources).

That would expire after the days!

* * WARNING * *

Trial Version:

1, the encryption code will not be optimized;

2, the encrypted file expires after 14 days;

3, if the use of License authorization, license 3 days after the expiration.

License Interface:

When license is enabled, we need to make a license key and then generate license.

The generated license authorization file suffix is. Zl, such as Test1.zl, which contains roughly the following:

Product-name = Test1

Registered-to = test1.com

hardware-locked = No

Com = www.Piaoyi.org

Expires = 28-jan-2015

produced-by = Zend Encoder Trial

Verification-code = wg5ff2uhlyrrrgs8jeqqlebepl+rahqtmvhxzq+9pyfkxv0bfdxid3cl6q==

When license authorization is enabled, the Zend_loader.license_path= value needs to be configured in php.ini. Like what:

Zend_loader.license_path=/users/ccmac/zend/test1/test1.zl

If you do not configure the license path, you are prompted for the PHP warning:

PHP Warning:no License for this product (test1)-Make sure Zend_loader.license_path was properly configured in your INI f ile! In/users/ccmac/php/zend/1.php on line 0

PHP warning:license Check failed! In/users/ccmac/php/zend/1.php on line 0

The obfuscation settings are as follows:

More to be added .....

Instructions on how to install Zend Guard loader for a PHP server:

Mac installation Steps (Reference):

1, download Zend Guard Loader 6.0.0 (for PHP 5.3 or 5.4), URL: http://www.zend.com/en/products/guard/downloads

File is: Zend Guard Loader (Runtime for PHP 5.4) 6.0.0, type: DMG.

Mac Download Address: http://downloads.zend.com/guard/6.0.0/ZendGuardLoader-70429-PHP-5.4-darwin10.7-x86_64.tar.gz

2. Extract zendguardloader.so (Linux) or ZendLoader.dll (Windows) from the compressed package;

Mac under the zendguardloader.so, only 3.3 version of the.

3, edit php configuration file ' php.ini ':

zend_extension =/usr/local/lib/php/zendguardloader.so # #路径根据实际情况而定

Zend_loader.enable=1

Zend_loader.disable_licensing=0

Zend_loader.obfuscation_level_support=3

Zend_loader.license_path=

4. If you use Zend debugger at the same time, please make sure to load after Zend Guard Loader loading.

5. If you use Ioncube Loader, make sure to load before Zend Guard loader load.

6, restart the WEB server.

After installation, use the Phpinfo () function to view, there are such descriptions: "With Zend Guard Loader v3.3", the following figure is the success:

NOTE: MAC OS X is currently out of 32-bit versions, with 64 new digits. Therefore, in the Mac installed after the php5.3, and then to Zend official website to find zendguardloader.so, you will find Zend there is no 64-bit version of the zendguardloader.so, only 32 digits, this time, if you forcibly reference the 32-bit zendguardloader.so for Mac php5.3, the following error occurs:

Failed Loading/usr/local/lib/php/php53/zendguardloader.so:dlopen (/usr/local/lib/php/php53/zendguardloader.so, 9) : no suitable image found. Did Find:

/usr/local/lib/php/php53/zendguardloader.so:mach-o, but wrong architecture

This error, the official reply said no solution, blocked.

At present we are support bit on the MAC for backward compatibility. In the next major version we'll probably move to the bit only. . You ' re simplest solution might is to download Zend Server CE-for-Mac and get a complete bit stack.

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.