Home  >  Article  >  Backend Development  >  Can php be run directly after encryption?

Can php be run directly after encryption?

王林
王林Original
2019-09-27 17:51:155432browse

Can php be run directly after encryption?

The encrypted php code requires the ZendGuardLoader module to run properly

DownloadZendGuardLoader compressed package

After downloading, unzip the compressed package, find the ZendLoader.dll file in the directory, put it in the ext directory of your php directory, and then edit php .ini file, add a piece of code:

[Zend.loader]
zend_loader.enable=1
zend_loader.disable_licensing=1
zend_loader.obfuscation_level_support=3
zend_loader.license_path=
zend_extension="你的PHP安装目录\ext\ZendLoader.dll"

Restart wampserver

If you are lucky, you will find that you can execute it directly. If you are not lucky, you will still find the above error. .

We have installed the zend guard loader here, why can’t we still execute the zend encrypted php script?

By looking at the output phpinfo() information, I found that there are several lines of information:

  PHP Extension 20090626
  Zend Extension 220090626
  Zend Extension Build API220090626,TS,VC9

Please note that TS is the abbreviation of thread safety (i.e. thread safety)

zend guard loader only supports the NTS version, which means that if your php version is TS, you cannot use zend guard loader. If you want to check whether your php is ts or nts, just You need to output phpinfo, and then search for: Thread Safety, disabled corresponds to the nts version, otherwise it is ts.

Recommended tutorial: PHP video tutorial

The above is the detailed content of Can php be run directly after encryption?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn