PHP: Using Zend for source encryption, Zend Guard installation, and Zend guard Run-time support mi_php Tutorial

Source: Internet
Author: User
Tags download zend php source code
Zend Guard is currently the most mature PHP source encryption products on the market.
Just need to encrypt their own products, tossing a night, finally fix, will encounter the problems and solutions recorded, convenient for future needs, can also help other people.
I am using Wampserver, where PHP version is 5.3.10.

Installation and cracking of Zend guard

Click to download Zend Guard5.5.0, after the download is complete, please self-fool installation
Here are a few things to keep in mind:
1. The effective time of this key is July 10, 2010, so please adjust your computer system time to this time before activating.
2, this key is activated for the trial version, encrypted files only 14 days of validity, so when encrypting the file, please adjust your computer system time backwards n years, such as 2099-12-31
3, download the authorization file [zend_guard authorization file. zip], unzip to get Zend_guard.zl, that is, the active file
4. Open Zend Guard 5.5.0,[help]->[register]->[search for a license files on my disk], select File activation.

How do I use Zend Guard for encryption?

1. Open Zend 5.5.0,[file]->[new]->[zend Guard Project], new project
2, in the window of the popup, the first 3 items to fill it, the last one is encrypted after the location of the file, and then [Next];
3, this step is to select the file to encrypt, can be a single file [Add file] and the entire folder [Add Folder], and then [Next]
4, Next is the choice of PHP version [with your server PHP version relative photos], here is very important, the version is wrong, [finish] to complete the creation of the project
5. In the Guard explorer on the left side of the Zend Guard, you can see your new project, and when the mouse is selected, right-click [Encode Project] to complete

Zend Guard run-time Support missing problem solving

Although you can now successfully encrypt the PHP source code, but when the execution of the script, you will find that it is not normal execution, the following information is displayed

Zend Guard run-time Support missing!
One more of the files on this web site were encoded by Zendguard and the required run-time are not installed Orproper Ly configured.
......

Originally, the encrypted PHP code requires the Zendguardloader module to function properly.
Because my PHP version is 5.3.10, so I only provide zendguardloader-php-5.3-windows here, if it is another version of PHP, please Baidu itself.
Click to download Zendguardloader-php-5.3-windows
Download and unzip the package, find the directory of the ZendLoader.dll file, put it in your PHP directory under Ext, edit the php.ini file, add a piece of code (such as):

[Zend.loader]
Zend_loader.enable=1
Zend_loader.disable_licensing=1
Zend_loader.obfuscation_level_support=3
Zend_loader.license_path=
zend_extension= "Your PHP installation directory \ext\zendloader.dll"

Restart Wampserver
If you are lucky, you will find that you can grow and execute, and if you have bad luck, you will find the above error.
Here we have installed the Zend Guard Loader, why is it still unable to execute the Zend encrypted PHP script?
By looking at the output phpinfo () information, I found that there are a few lines of information:

  PHP Extension 20090626

  Zend Extension 220090626

  Zend Extension Build API220090626,TS,VC9


Note that TS is a shorthand for thread safety (that is, threads are safe)
Can not find a reason, simply open Zend Guard official website to search, and then solved.
Originally, Zend Guard loader only supported the NTS version, meaning if your PHP version is TS, you will not be able to use Zend Guard loader, if you want to see if your PHP is TS or NTS, only need to output phpinfo, Then search under: Thread safety,disabled corresponds to NTS version, otherwise TS.
Therefore, the ultimate solution is to download a PHP NTS version to install.

Resources

Zendguard 5.5.0 Hack method + registration file key download
Release Notes for PHP (thread safe and non thread safe) under Windows

Author: Former Civil Man (Http://www.cnblogs.com/hongfei)
Original address: http://www.cnblogs.com/hongfei/p/3587399.html

http://www.bkjia.com/PHPjc/738499.html www.bkjia.com true http://www.bkjia.com/PHPjc/738499.html techarticle Zend Guard is currently the most mature PHP source encryption products on the market. Just need to encrypt their products, tossing a night, finally fix, will encounter problems and solutions ...

  • 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.