国际PHP扩展不适用于xampp服务器
我正在尝试安装 CakePHP 3-0-0
版本,并且我已经从此处。但是它显示了启用 intl扩展
的错误。因为我已经将; extension = php_intl.dll
更改为 extension = php_intl.dll
(删除分号), code> php.ini 文件并重新启动xampp 2-3
次,但仍然显示相同的错误。
I am trying to install CakePHP 3-0-0
version and I have downloaded the source code from here. But it is showing the error of enable intl extension
. As I have already changed ;extension=php_intl.dll
to extension=php_intl.dll
(remove the semicolon) in php.ini
file and restart xampp 2-3
times, but still it is showing that same error.
这是以下错误:
Fatal error: You must enable the intl extension to use CakePHP. in D:\xampp\htdocs\cakephp-3-0-0\config\bootstrap.php on line 38
那么,有人可以告诉我这里是什么问题吗?我应该怎么做才能解决这个问题?
So, can anyone please tell me what is the issue here? And what should I do to resolved this issue?
在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)