Home  >  Article  >  Backend Development  >  ecshop出现Hacking attempt错误怎么解决

ecshop出现Hacking attempt错误怎么解决

PHPz
PHPzOriginal
2016-06-13 11:55:454157browse

ecshop出现Hacking attempt错误的解决方法:首先在需要访问的页面中添加代码【define('IN_ECS', true);】;然后开启IIN_ECS即可。

ecshop出现Hacking attempt错误怎么解决

ecshop报错Hacking attempt怎么解决?

一般出现这个问题原因是因为ecshop某些页面访问权限是关闭的。

这些页面往往会有如下代码

if (!defined('IN_ECS'))
{
    die('Hacking attempt');
}

那么如何访问到这个页面呢?

其实原理很简单,你要在某一个页面访问加入了以上代码的页面,就需要开启IIN_ECS,

如下的设置会让你的页面有访问无法访问权限的页面。

define('IN_ECS', true);

更多相关知识,请访问 PHP中文网!!

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