加密库需要Mcrypt扩展 [英] The Encrypt library requires the Mcrypt extension

查看:159
本文介绍了加密库需要Mcrypt扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用Codeigniter框架编写的PHP应用程序。当我尝试在Windows Machine上运行此应用程序时,出现以下错误:

I have a PHP application written using the Codeigniter framework. When I am trying to run this application on Windows Machine then I am getting below error:


遇到错误

加密库需要Mcrypt扩展名。

An Error Was Encountered
The Encrypt library requires the Mcrypt extension.

这个相同的应用程序在具有相同配置的某些随机Windows计算机上也可以正常工作。我在5种不同的Windows 10计算机上尝试过,在3计算机上收到此错误,在2计算机上工作正常。在这里,我使用相同的安装程序在所有计算机上安装XAMPP,并使用相同的代码,但仍然不知道如何使它平稳运行。
我尝试了几乎所有在线可用的建议,例如对php.ini进行了更改,但到目前为止还没有运气。

This same application working fine on some random Windows Machine having the same configuration. I have tried on 5 different windows 10 machines and got this error on 3 Machine and worked fine on 2 machines. Here I have used the same installer to install XAMPP on all the machines and the same code, but still don't know how to make it run smoothly. I have tried almost all the suggestions available online like to make a change in php.ini but no luck so far.

推荐答案

(仅限CI用户)如果从CI2 XAMPP(php5)切换到XAMPP(php7),则粘贴 encrypt.php 在CI-> system-> libraries文件夹中,此后应该没问题!

(FOR CI USERS only) If you are switched from CI2 XAMPP(php5) to XAMPP(php7) then, paste encrypt.php in CI->system->libraries folder, after this it should be fine !

这篇关于加密库需要Mcrypt扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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