php 如何在 xampp 中安装 mcrypt 扩展

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/37522384/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-26 01:15:58  来源:igfitidea点击:

How to install mcrypt extension in xampp

phpxamppmcrypt

提问by Dhaval Koradiya

how to install mcrypt in xampp on windows?

如何在 Windows 上的 xampp 中安装 mcrypt?

My PHP Version 7.0.5 and xampp pack have not mcryptextensionso how can i install mcrypt on xampp ?

我的 PHP 版本 7.0.5 和 xampp 包没有mcrypt扩展,所以我如何在 xampp 上安装 mcrypt?

回答by mrdev

First, you should download the suitable version for your system from here: https://pecl.php.net/package/mcrypt/1.0.3/windows

首先,您应该从这里下载适合您系统的版本:https: //pecl.php.net/package/mcrypt/1.0.3/windows

Later, you should copy php_mcrypt.dll under ../xampp/php/ext/ and you should enable extension like extension=mcrypt from xampp/php/php.ini

稍后,您应该将 ../xampp/php/ext/ 下的 php_mcrypt.dll 复制,并且您应该从 xampp/php/php.ini 启用像 extension=mcrypt 这样的扩展

回答by MrMoxy

The recent versions of XAMPP for Windows runs PHP 7.x which are NOT compatible with mbcrypt. If you have a package like Laravel that requires mbcrypt, you will need to install an older version of XAMPP. OR, you can run XAMPP with multiple versions of PHP by downloading a PHP package from Windows.PHP.net, installing it in your XAMPP folder, and configuring php.ini and httpd.conf to use the correct version of PHP for your site.

适用于 Windows 的 XAMPP 的最新版本运行 PHP 7.x,但与 mbcrypt 不兼容。如果你有一个像 Laravel 这样需要 mbcrypt 的包,你需要安装旧版本的 XAMPP。或者,您可以通过从 Windows.PHP.net 下载 PHP 包,将其安装在您的 XAMPP 文件夹中,并配置 php.ini 和 httpd.conf 以使用适用于您的站点的正确版本的 PHP,从而使用多个版本的 PHP 运行 XAMPP。

回答by FelipeEduardo

Right from the PHP Docs: PHP 5.3 Windows binaries uses the static version of the MCrypt library, no DLL are needed.

直接来自 PHP 文档:PHP 5.3 Windows 二进制文件使用 MCrypt 库的静态版本,不需要 DLL。

http://php.net/manual/en/mcrypt.requirements.php

http://php.net/manual/en/mcrypt.requirements.php

But if you really want to download it, just go to the mcrypt sourceforge page

但如果你真的想下载它,就去 mcrypt sourceforge 页面

http://sourceforge.net/projects/mcrypt/files/?source=navbar

http://sourceforge.net/projects/mcrypt/files/?source=navbar

回答by illeas

For windows

窗户用

  1. Create a new folder like new-project.
  2. past this command in your windows command "composer create-project laravel/laravel new-project 4.2.*"
  1. 创建一个新文件夹,如 new-project。
  2. 在 Windows 命令“composer create-project laravel/laravel new-project 4.2.*”中通过此命令