[英]Fatal error: Call to undefined function mb_detect_encoding() in C:\Users\Jarek\mywebsite\phpMyAdmin\libraries\php-gettext\gettext.inc on line 177
I am trying to set up phpMyAdmin, and i was following this site , but i got an error about "Fatal error: Call to undefined function mb_detect_encoding() in C:\\Users\\Jarek\\mywebsite\\phpMyAdmin\\libraries\\php-gettext\\gettext.inc on line 177", and i searched this error online, Most of suggestion are uncommon some lines in php.ini, but it didn't work for me. 我正在尝试设置phpMyAdmin,并且正在关注此站点 ,但我收到有关“致命错误:在C:\\ Users \\ Jarek \\ mywebsite \\ phpMyAdmin \\ libraries \\ php-gettext \\中调用未定义函数mb_detect_encoding()的错误gettext.inc在第177行上”,我在网上搜索了此错误,大多数建议在php.ini中有些行并不常见,但这对我不起作用。 This is the site tell you how to solve problem with this error.
该站点告诉您如何解决此错误的问题。 solve 1 solve 2
解决1 解决2
php.ini is in my php folder which is located in c diver. php.ini在我的php文件夹中,它位于c diver中。
prompt command to check path 提示命令检查路径
Every time i changed config, i also did restart apache. 每次更改配置时,我也都会重新启动apache。
I also tried to write some piece of code of php as below: 我还尝试编写如下的php代码:
$con=mysqli_connect("127.0.0.1","root","xxxxxxx","morris_db");
if (mysqli_connect_errno()) {
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
and open my browser, and type localhost/index.php, it shows me an error about "Fatal error: Call to undefined function mysqli_connect() in C:\\Users\\Jarek\\mywebsite\\index.php on line 8" 并打开我的浏览器,然后键入localhost / index.php,它向我显示有关“致命错误:在第8行的C:\\ Users \\ Jarek \\ mywebsite \\ index.php中调用未定义函数mysqli_connect()的错误”
Try adding these extensions in the PHP.ini 尝试在PHP.ini中添加这些扩展
extension=php_mbstring.dll
extension=php_gettext.dll
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_pdo_mysql.dll
Also check whether the PHP folder exists in the PATH. 还要检查PATH中是否存在PHP文件夹。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.