Title rewritten to read: Fatal error: Call to undefined function mb_detect_encoding()
P粉055726146
P粉055726146 2023-08-29 13:16:17
0
2
434

I received this error after trying to set up LAMP following this tutorial and found myself getting the above error after trying to set up phpmyadmin.

Fatal error: Call to undefined function mb_detect_encoding() C:WebServerApachehtdocsphpmyadminlibrariesphp-gettextgettext.inc At line 177

I followed the advice here: PHP fatal error while trying to access phpmyadmin mb_detect_encoding and made these changes.

When I run phpinfo() I see that support for MySQL and mb_string is enabled like this:

P粉055726146
P粉055726146

reply all (2)
P粉722409996

There are easier ways than recompiling PHP. Just yum install the required mbstring library:

Example:How to install PHP mbstring on CentOS 6.2

yum --enablerepo=remi install php-mbstring

Oh, don’t forget to restart apache afterward.

    P粉063862561

    Also install the gd library.

    Check this linkhttp://www.php.net/manual/en/mbstring.installation.php

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!