PHP致命错误:必须启用intl扩展才能使用CakePHP。在第31行的C:xampp\htdocs\Cakecrud\config\requirements.php中 [英] PHP Fatal error: You must enable the intl extension to use CakePHP. in C:\xampp\htdocs\Cakecrud\config\requirements.php on line 31

查看:233
本文介绍了PHP致命错误:必须启用intl扩展才能使用CakePHP。在第31行的C:xampp\htdocs\Cakecrud\config\requirements.php中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 php.ini

extension= intl
extension= php_intl.dll

在cmd上运行命令时,错误仍然相同

Still the error is same when I run the command on cmd

烘焙所有学生

推荐答案

听起来您可能已经将intl扩展添加到错误的php.ini文件中

It sounds like you might have added the intl exension to the wrong php.ini file.

它需要添加到Web php.ini文件中,而不是cli。

It needs to be added to the web php.ini file, not cli.

要检查为Web加载了哪些扩展名,请编写 phpinfo(); exit; 在一个PHP文件中,然后单击Hit。

To check what extensions are loaded for the web, write phpinfo();exit; in a PHP file then hit hit.

查看PHP cli中加载了什么(您可能在其中将其错误添加),在终端上运行 php -m

To see whats loaded in PHP cli (where you may have added it by mistake), run php -m at a terminal.

这篇关于PHP致命错误:必须启用intl扩展才能使用CakePHP。在第31行的C:xampp\htdocs\Cakecrud\config\requirements.php中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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