且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

国际PHP扩展不适用于xampp服务器

更新时间:2023-02-23 16:10:17

在php中激活 php_intl.dll 之后。 ini文件中,还需要将 php_intl.dll 使用的dll文件从PHP文件夹复制到Apache / bin文件夹。

Once you have activated the php_intl.dll in the php.ini file you also need to copy the dll files that php_intl.dll uses from the PHP folder to the Apache/bin folder.

我不是XAMPP用户,所以我不确定实际的文件夹名称

I am not a XAMPP user so I am not sure of the actual folder names

将xampp / php / icu * .dll复制到xamp\apache\ \bin

copy xampp/php/icu*.dll to xamp\apache\bin

还要记住,您必须编辑 \xampp\apache\bin 中的php.ini文件文件夹,而不是 \xampp\php 文件夹中的一个。

Also remember that you have to edit the php.ini file that lives in the \xampp\apache\bin folder and not the one in the \xampp\php folder.

一个 \xampp\php 文件夹中的内容仅由PHP CLI(命令行界面)使用

The one in the \xampp\php folder only gets used by PHP CLI (Command Line Interface)