致命错误:blenc_compile:模块 php_blenc 已过期.请购买新的许可证密钥或禁用该模块.在未知的第 0 行 [英] Fatal error: blenc_compile: Module php_blenc was expired. Please buy a new license key or disable the module. in Unknown on line 0

查看:27
本文介绍了致命错误:blenc_compile:模块 php_blenc 已过期.请购买新的许可证密钥或禁用该模块.在未知的第 0 行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行blenc加密文件时出现错误:

When i run blenc encrypted file it gives error:

致命错误:blenc_compile:模块 php_blenc 已过期.请购买新的许可证密钥或禁用该模块.在未知的第 0 行

Fatal error: blenc_compile: Module php_blenc was expired. Please buy a new license key or disable the module. in Unknown on line 0

我在blenc使用中遵循这些步骤:

These Steps i'm followed for blenc usage:

  1. 我从 blenc-1.1.4b<安装了最新版本的 blencxampp

然后创建了一个包含内容的文件 encoder.php:

then created a file encoder.php with content:

$source_code = file_get_contents("testcode.php");$redistributable_key = blenc_encrypt($source_code, "encrypt.php");$key_file = ini_get('blenc.key_file');file_put_contents($key_file, $redistributable_key . "\n", FILE_APPEND);

然后创建了一个包含内容的文件 testcode.php:

then created a file testcode.php with content:

echo "hello";

然后我将名为 testcode.php 的文件编码为 encrypt.php.

then i encoded the file named as testcode.php to encrypt.php.

运行它时,我得到了上面给出的错误.

And While run it, I got error given above.

推荐答案

php_blenc 需要在 php.ini 中这样的 key_file 的绝对路径:

php_blenc need an absolute path for key_file like this in php.ini:

blenc.key_file = "d:/php/blenckeys"

和许可证密钥错误构建 blenc 自己和源文件 blenc_protect.h

and for license key error build blenc yourself and in source files blenc_protect.h

...

#define BLENC_PROTECT_EXPIRE "99-99-9999"

... 

替换为

...

#define BLENC_PROTECT_EXPIRE "01-01-9999"

... 

这篇关于致命错误:blenc_compile:模块 php_blenc 已过期.请购买新的许可证密钥或禁用该模块.在未知的第 0 行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆