PHP文件中的模块初始化失败? [英] Module initialization failed in PHP File?

查看:201
本文介绍了PHP文件中的模块初始化失败?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用以下代码解密PHP中的加密代码.

I am decrypting the encrypted code in PHP by using the following code.

function decrypt($string) {
            $string = base64_decode($string);
 
            //key 
            $key = "xxxxxxxx";
             
 
            $cipher_alg = MCRYPT_TRIPLEDES;
 
            $iv = mcrypt_create_iv(mcrypt_get_iv_size($cipher_alg,MCRYPT_MODE_ECB), MCRYPT_RAND); 
             
 
            $decrypted_string = mcrypt_decrypt($cipher_alg, $key, $string, MCRYPT_MODE_ECB, $iv); 
            return trim($decrypted_string);
    }


但这给出了以下异常.


But it is giving the following exception.

Warning: mcrypt_decrypt(): Module initialization failed in C:\inetpub\sample.php



我们如何解决此问题.....



How can we resolve this issue.....

推荐答案

string){
string) {


string = base64_decode(
string = base64_decode(


string); //
string); //key


这篇关于PHP文件中的模块初始化失败?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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