当我运行blenc加密文件时,它会产生错误:
致命错误: blenc_compile:模块php_blenc过期。请购买新的许可证密钥或禁用模块。在第0行中未知
在使用blenc时遵循以下步骤:
$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);echo "hello";在运行它的时候,我得到了上面的错误。
发布于 2015-03-25 17:33:32
php_blenc需要一个key_file的绝对路径,比如在php.ini中
blenc.key_file = "d:/php/blenckeys"对于许可证密钥错误,请自己构建blenc并在源文件中创建blenc_protect.h。
...
#define BLENC_PROTECT_EXPIRE "99-99-9999"
... 代之以
...
#define BLENC_PROTECT_EXPIRE "01-01-9999"
... https://stackoverflow.com/questions/29105962
复制相似问题