Fatal error: Call to undefined function mb_strtolower()

前端 未结 4 643
终归单人心
终归单人心 2020-12-18 23:52

i have a vps server i installed nginx + php-fpm now i have a problem with mb_strtolower() function this is my php info pleas goto this adress to see my php info

         


        
相关标签:
4条回答
  • 2020-12-19 00:01

    Building on the answers from Phil Rykoff and omeinusch: this is my configure line to build php from source to support reportico 3.2 on php 5.4.43 / Centos 7.1.1503

    /configure --with-apxs2=/opt2/canal/apache/bin/apxs --with-mysql
    --with-pdo-mysql --prefix=/opt2/canal/php --enable-mbstring --with-gd
    

    --enable-mbstring is pertinent to this question.
    (--with-gd required from image handling (also needed yum install libpng-devel to avoid missing png.h message))

    Then needed to set the following in php.ini:

    zend.multibyte = On
    
    0 讨论(0)
  • 2020-12-19 00:04

    If you're using cPanel hosting, you can go to PHP Selector and check the "mbstring" feature. It worked for me.

    0 讨论(0)
  • 2020-12-19 00:12

    You need to install the PHP multibyte extension ("mbstring") as described here.

    0 讨论(0)
  • 2020-12-19 00:19

    Search in your php.ini for this line:

    ;zend.multibyte = Off
    

    And change it to:

    zend.multibyte = On
    
    0 讨论(0)
提交回复
热议问题