1. Run the following commands on the Linux host to install the mbstring extension Library: 1. Run the cd command to enter the etcmbstring directory under the php source code directory, for example, srcphp5.2.5, that is, cdsrcphp5.2.5; 2. Run #
In linux, install mbstring1. Go To The extmbstring directory of the php source package $ cdhomephpextmbstring2. run phpize $ usrlocallibphpbinphpize3. compile mbstring $ in the mbstring directory under the php installation directory. configure --
Add mbstring extension and linuxmbstring extension to php in Linux
1. Today, a php function (mb_strcut) is used in the development project, and an error "call to undefind function mb_strcut" is prompted when running the code. First, check whether
1. problem: the php mbstring extension cannot be loaded normally. 2. environment: centos7.2 virtual machine, PHPVersion & amp; gt; 7.0.8 my php is installed through yum, the installation source uses webstatic, and the mbstring extension also uses
One, Linux host installation mbstring Extension Library Guide (source installation)
The following command is entered at the command line:
1, use the CD command to enter the source code directory of PHP under the etc/mbstring directory, such as
Mbstring library full name is multi-byte string that all languages have their own encoding, their number of bytes is not the same, the current PHP internal encoding only supports ISO-8859-*, EUC-JP, other coding languages for UTF-8 are not available
Mbstring Library full name is Multi-Byte String that all languages have their own code, their number of bytes is not the same, currently PHP internal code only support iso-8859-*, EUC-JP, UTF-8Other coded languages are not displayed correctly on PHP
Php's mbstring extension will cause some problems if it is not installed: Example 1: when logging on to phpMyAdmin, the system will prompt no string encoding or string processing library php_mbstring, in some programs, the mb_substr function is used
Install the mbstring extension of php in CentOS
If the mbstring extension of php is not installed, some problems may occur:
Example 1: When logging on to phpMyAdmin, the system will prompt no string encoding and no string processing library
Install the mbstring extension in php in linux. 1. run the Copy code as follows: yuminstallphp-mbstring2. modify php. ini (this step is very important, some lxadmin versions cannot be automatically modified) copy the code as follows: echo 'exte 1.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.