Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of error after php encryption

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces how to solve the problem of errors after php encryption, the article is very detailed, has a certain reference value, interested friends must read it!

The solution to the error after php encryption: 1, modify the content as "$where. =" AND o.order_status ='". $filter [composite _ status]."; 2, set to unencrypted.

This article operating environment: Windows7 system, PHP7.1 version, Dell G3 computer.

What if there is an error after php encryption? Why can't encrypted files be used?

First of all, we should learn to rule out the causes of mistakes, and now we will explain and communicate with you on common problems for reference:

1. Binary problem?

Because the data encrypted by our system is a binary packet, when the encrypted file is using the LINUX server, the FTP file must be uploaded in binary, otherwise the file will be corrupted and cannot be used.

2. Has the file been modified?

The problem is the same as 1, the encrypted PHP file is prohibited to be modified, even if you modify one byte, it will be executed or error, so the encrypted file is prohibited to be modified.

3. Lack of closed label?

For good habits, PHP needs to end with? >. Some of the program errors are caused by the lack of this tag. Please maintain the integrity of the program.

4. For the problem of using the namespace namespace?

If you use: namespace in your program, you need to keep no code in front of the namespace code, including comments, otherwise the encrypted file will not be executed.

5. Why can I use it for free but encrypt it to VIP but fail to use it?

The unique function of the VIP version is to confuse, disrupt and encrypt the original PHP source code. There may be problems with the compatibility of some statements or code (the probability is very low and we are updating it all the time). In such a situation, you can use the following ways to investigate. Encryption: only obfuscate PHP obfuscation: identical obfuscation (random), then encrypt the PHP source code and then debug it. If you make another error, you can show the specific error line to have the code, and you can set the specific variable to unencrypted data. You can also send us such files to debug and upgrade the compatibility of the system.

6. For extended encryption (DLL), ZEND encryption, ionCube9 encryption?

These encryptions need to be modified to the corresponding PHP version of php.ini to install the PHP extension, otherwise it cannot be used. Please check it carefully and also pay attention to the problem of binary upload.

7. after encryption, the garbled code is displayed, and the program is not executed?

If extension encryption is used, it is usually caused by the absence of an extension. There is another situation, such as ThinkPhp part of the file is loaded as a template, such a file can not be encrypted.

8. Points for attention in a code.

$where. = "AND o.order_status ='$filter [composite _ status]'"

This code, when encrypted, will become

$where. = "AND o.order_status ='$filter [$GLOBALS ['phpjiami_decrypt'] [' I1I1IIl1l1lll1lIl11I11ll']]'"

Can cause it to fail to run, and there are two solutions.

Solution 1:

Modify the code as follows: $where. = "AND o.order_status ='". $filter [composite _ status]. "'"

Solution 2:

It can be set to unencrypted.

The above is all the contents of this article entitled "how to solve the problem of errors after php encryption". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report