在 Windows 上的 xampp 上安装 crypt 河豚 [英] install crypt blowfish on xampp on windows
问题描述
我有一个 zencart 模块,它需要在我的服务器上进行 Blowfish 加密.目前我只是在我的本地主机上进行测试,它是 Windows 机器上的 xampp.
I have a module for a zencart which requires Blowfish Encryption on my server. At the moment I'm just testing on my localhost which is xampp on a windows machine.
我用谷歌搜索并查看了stackoverflow,但找不到任何关于如何操作的说明(至少我理解).
Ive googled and looked on stackoverflow but can't find any instructions (at least that I understand) on how to do it.
有可能吗?
谢谢:)
推荐答案
其实如果你使用最新的 XAMPP,mcrypt 是默认安装的.根据 PHP 网站:
Actually, if you use the latest XAMPP, mcrypt is installed by default. According to the PHP website:
PHP 5.3 Windows 二进制文件使用 MCrypt 的静态版本库,不需要 DLL.
PHP 5.3 Windows binaries uses the static version of the MCrypt library, no DLL are needed.
如果您使用 PHP 5.2.x:
If you use PHP 5.2.x:
- 从 http://windows.php.net/download/ 下载 Win32 二进制文件.确保您拥有哪个 PHP 版本,因为您可以看到有不同的版本.
- 将
php_mcrypt.dll
复制到PHP 的ext
目录,将libmcrypt.dll
复制到Apache 的bin
目录. - 将以下行添加到
php.ini
中的扩展部分:extension=php_mcrypt.dll
. - 最后,重启 Apache.
- Download the Win32 binaries from http://windows.php.net/download/. Ensure which PHP version you have, as you can see there are different ones.
- Copy
php_mcrypt.dll
to PHP'sext
directory, andlibmcrypt.dll
to Apache'sbin
directory. - Add the following line to the extensions section in
php.ini
:extension=php_mcrypt.dll
. - Finally, restart Apache.
它应该可以正常工作.:)
It should work okay. :)
这篇关于在 Windows 上的 xampp 上安装 crypt 河豚的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!