PHP's solution to the MB module

Source: Internet
Author: User
PHP-related MB module Fatalerror: Calltoundefinedfunctionmb_internal_encoding () inusrlocalapache2htdocs1_deapplication. phponline29 ------ solution ------------------ mbstring view ph PHP-related MB module
Fatal error: Call to undefined function mb_internal_encoding () in/usr/local/apache2/htdocs/include/application. php on line 29


------ Solution --------------------
Mbstring
Check whether php_mbstring.dll is loaded in php. ini.
------ Solution --------------------
Dll is the library under win, and the main author is Linux.

[Mbstring]
Multi-byte string module support

Mbstring. language = "neutral"
; The default NLS (set in the local language) can be set as follows:
The default value "neutral" indicates neutral, which is equivalent to unknown.
"Zh-cn" or "Simplified Chinese" indicates Simplified Chinese
"Zh-tw" or "Traditional Chinese" indicates Traditional Chinese
; "Uni" or "universal" indicates Unicode
; This command automatically defines the default value of the subsequent mbstring. internal_encoding command,
And the mbstring. internal_encoding command must be placed after the command.

Mbstring. internal_encoding =
; This command must be placed after the mbstring. language command.
; Default internal encoding. if not set, it depends on the value of the mbstring. language command:
; "Neutral" corresponds to "ISO-8859-1 ″
; "Zh-cn" corresponds to "EUC-CN" (equivalent to "GB2312 ″)
; "Zh-tw" corresponds to "EUC-TW" (equivalent to "BIG5 ″)
; "Uni" corresponds to "UTF-8 ″
Reminder: You can also force "CP936" (equivalent to "GBK") for simplified Chinese ")
Note: it is possible that SJIS, BIG5, and GBK are not suitable for internal encoding, but "GB2312" is certainly correct.
We recommend that you manually specify

Mbstring. encoding_translation = Off
Whether to perform transparent encoding conversion for incoming HTTP requests according to the mbstring. internal_encoding command,
That is, the system automatically detects the encoding of input characters and transparently converts them to internal encoding.
Portable libraries or programs do not rely on automatic encoding conversion.

Mbstring. http_input = "pass"
; The default HTTP input encoding, "pass" indicates skipping (no conversion)
The meaning of "aotu" is the same as that in the mbstring. detect_order command.
; Can be set to a separate value or a comma-separated list.

Mbstring. http_output = "pass"
; The default HTTP output encoding, "pass" indicates skipping (no conversion)
The meaning of "aotu" is the same as that in the mbstring. detect_order command.
; Can be set to a separate value or a comma-separated list.
The output_handler command must be set to "mb_output_handler.

Mbstring. detect_order =
; The default encoding check sequence. "pass" indicates skipping (no conversion ).
; The default value ("auto") varies with the mbstring. language command:
"Neutral" and "universal" correspond to "ASCII, UTF-8 ″
; "Simplified Chinese" corresponds to "ASCII, UTF-8, EUC-CN, CP936 ″
"Traditional Chinese" corresponds to "ASCII, UTF-8, EUC-TW, BIG-5 ″
We recommend that you manually specify a single value in a controllable environment.

Mbstring. func_overload = 0
; SYS
The mb _ * function is automatically used to reload the corresponding single-byte string function.
For example: mail (), ereg () will be automatically replaced with mb_send_mail (), mb_ereg ()
; Can be combined with 0, 1, 2, and 2 bits. For example, 7 indicates replacing all. The replacement is described as follows:
; 0: no replacement
; 1: mail () → mb_send_mail ()
; 2: strlen () → mb_strlen (); substr () → mb_substr ()
; Strpos () → mb_strpos (); strrpos () → mb_strrpos ()
; Strtolower () → mb_strtolower (); strtoupper () → mb_strtoupper ()
; Substr_count () → mb_substr_count ()
; 4: ereg () → mb_ereg (); eregi () → mb_eregi ()
; Ereg_replace () → mb_ereg_replace (); eregi_replace () → mb_eregi_replace ()
; Split () → mb_split ()

Mbstring. scr limit pt _ encoding =
The encoding used by the script

Mbstring. strict_detection = Off
Whether to use rigorous encoding detection

Mbstring. substitute_character =
When a character cannot be decoded, it is replaced by this character.
If it is set to an integer, it indicates the corresponding Unicode value. if it is not set to any value, this error character is not displayed.
We recommend that you set it to "□"

Mbstring. strict_encoding = Off; the default value is unknown.
; Enable strict encoding detection.
There are no instructions for this command
------ Solution --------------------
In php. ini, find
; Extension = php_mbstring.dll

Remove the semicolon. Restart apache.
------ Solution --------------------
Mbstring php already comes with it. compile php with-enable-mbstring. compile php again.
Or compile mbstring.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.