It's been a day. Solving de-fatal error:call to undefined function mb_detect_encoding ()

Source: Internet
Author: User
Tags response code
Visit http://127.0.0.1/phpmyadmin/
Fatal error:call to undefined function mb_detect_encoding () in F:\www\phpMyAdmin\libraries\php-gettext\gettext.inc on Line 177

PHP.ini really changed,
Extension=php_mbstring.dll
Extension_dir = "E:\php\ext\";

Php_mbstring.dll,php_mysql.dll,php_mysqli.dll put them under the C:\Windows.
Path added e:/php; E:/php/ext
Apache has restarted every time, the computer is restarted, it is not working

Phpinfo () page:
Configuration File (php.ini) Path C:\windows
Loaded Configuration File E:\php\php.ini

But there's a problem here.
Extension_dir E:\php\ext ";
And then there are the following:
; Whether or not to enable the DL () function. The DL () function does not work
; Properly in multithreaded servers, such as IIS or Zeus, and is automatically
; Disabled on them.
; Http://php.net/enable-dl
ENABLE_DL = Off

; Cgi.force_redirect is necessary to provide security running PHP as a CGI under
; Most Web servers. Left undefined, PHP turns this on by default. You can
; Turn it off here at YOUR OWN RISK
; **you CAN safely turn this off for IIS, in fact, you must.**
; Http://php.net/cgi.force-redirect
; cgi.force_redirect = 1

; If CGI.NPH is enabled it would force CGI to always sent status:200 with
; Every request. PHP ' s default behavior is to disable this feature.
; cgi.nph = 1

; If Cgi.force_redirect is turned on, and you are not running under Apache or Netscape
; (iPlanet) Web servers, you could need to set a environment variable name that PHP
; 'll look for know it's OK to continue execution. Setting this variable may
; Cause security issues, KNOW what is DOING first.
; Http://php.net/cgi.redirect-status-env
; cgi.redirect_status_env =

; Cgi.fix_pathinfo provides *real* path_info/path_translated support for CGI. PHP ' s
; Previous behaviour is to set path_translated to Script_filename, and to not Grok
; What Path_info is. For more information in Path_info, see the CGI specs. Setting
; This to 1 would cause PHP CGI to fix it paths to conform to the spec. A setting
; of zero causes PHP to behave as before. Default is 1. You should fix your scripts
; To use Script_filename rather than path_translated.
; Http://php.net/cgi.fix-pathinfo
; cgi.fix_pathinfo=1

; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
; Security tokens of the calling client. This allows IIS to define the
; Security context that the request runs under. mod_fastcgi under Apache
; Does not currently support this feature (03/17/2002)
; Set to 1 if running under IIS. Default is zero.
; Http://php.net/fastcgi.impersonate
; fastcgi.impersonate = 1

; Disable logging through FastCGI connection. PHP ' s default behavior is to enable
; This feature.
; fastcgi.logging = 0

; Cgi.rfc2616_headers configuration option tells PHP what type of headers to
; Use when sending HTTP response code. If it ' s set 0 PHP sends Status:header that
; is supported by Apache. When the This option was set to 1 PHP would send
; RFC2616 compliant header.
; Default is zero.
; Http://php.net/cgi.rfc2616-headers
; cgi.rfc2616_headers = 0

;;;;;;;;;;;;;;;;
; File uploads;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
; Http://php.net/file-uploads
File_uploads = On

; Temporary directory for HTTP uploaded files (would use system default if not
; Specified).
; Http://php.net/upload-tmp-dir
; Upload_tmp_dir =

; Maximum allowed size for uploaded files.
; Http://php.net/upload-max-filesize
Upload_max_filesize = 2M

; Maximum number of files that can is uploaded via a single request
Max_file_uploads = 20

;;;;;;;;;;;;;;;;;;
; Fopen wrappers;
;;;;;;;;;;;;;;;;;;

; Whether to allow the treatment of URLs (like http:/or ftp://) as files.
; Http://php.net/allow-url-fopen
Allow_url_fopen = On

; Whether to allow Include/require to open URLs (like http:/or ftp://) as files.
; Http://php.net/allow-url-include
Allow_url_include = Off

; Define the anonymous FTP password (your email address). PHP ' s default setting
; is empty.
; Http://php.net/from
; from=john@doe.com

; Define the user-agent string. PHP ' s default setting for this is empty.
; Http://php.net/user-agent
; user_agent=php

; Default timeout for socket based streams (seconds)
; Http://php.net/default-socket-timeout
Default_socket_timeout = 60

; If your scripts has to deal and files from Macintosh systems,
; Or you is running on a Mac and need to deal with the files from
; UNIX or Win32 systems, setting this flag would cause PHP to
; Automatically detect the EOL character in those files so
; Fgets () and file () would work regardless of the source of the file.
; Http://php.net/auto-detect-line-endings
; auto_detect_line_endings = Off

;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions;
;;;;;;;;;;;;;;;;;;;;;;

; If you wish to a extension loaded automatically, use the following
; Syntax
;
; Extension=modulename.extension
;
; For example, on Windows:
;
; Extension=msql.dll
;
; ... or under UNIX:
;
; Extension=msql.so
;
; ... or with a path:
;
; Extension=/path/to/extension/msql.so
;
; If you are only provide the name of the extension, PHP would look for it
; Default extension directory.
;
; Windows Extensions
; Note that ODBC support is built in, and so no DLLs are needed for it.
; Note that many DLL files is located in the extensions/(PHP 4) ext/(PHP 5)
; Extension folders as well as the separate PECL DLL download (PHP 5).
; Be sure to appropriately set the EXTENSION_DIR directive.
;
; Extension=php_bz2.dll
; Extension=php_curl.dll
; Extension=php_fileinfo.dll
; Extension=php_gd2.dll
; Extension=php_gettext.dll
; Extension=php_gmp.dll
; Extension=php_intl.dll
; Extension=php_imap.dll
; Extension=php_interbase.dll
; Extension=php_ldap.dll
Extension=php_mbstring.dll
; Extension=php_exif.dll; Must is after mbstring as it depends on it
Extension=php_mysql.dll
Extension=php_mysqli.dll
; Extension=php_oci8.dll; Use with Oracle 10gr2 Instant Client
; Extension=php_oci8_11g.dll; Use with Oracle 11gR2 Instant Client
; Extension=php_openssl.dll
; Extension=php_pdo_firebird.dll
Extension=php_pdo_mysql.dll
; Extension=php_pdo_oci.dll
; Extension=php_pdo_odbc.dll
; Extension=php_pdo_pgsql.dll
; Extension=php_pdo_sqlite.dll
; Extension=php_pgsql.dll
; Extension=php_pspell.dll
; Extension=php_shmop.dll

; The MIBS data available in the PHP distribution must is installed.
; See http://www.php.net/manual/en/snmp.installation.php
; Extension=php_snmp.dll

; Extension=php_soap.dll
; Extension=php_sockets.dll
; Extension=php_sqlite3.dll
; Extension=php_sybase_ct.dll
; Extension=php_tidy.dll
; Extension=php_xmlrpc.dll
; Extension=php_xsl.dll

...... There's a lot more.

Don't know why ...

Seeking the deliverance of the Great God



Reply to discussion (solution)



Phpinfo ();
?>

See if there is a mbstring, if there is, that means mbstring show? Success.


Extension_dir E:\php\ext ";
Put Php_mbstring.dll,php_mysql.dll,php_mysqli.dll in the??。.


I have no phpinfo in the mbstring, why?

The Ext folder already has all the DLLs.



Phpinfo ();
?>

See if there is a mbstring, if there is, that means mbstring show? Success.


Extension_dir E:\php\ext ";
Put Php_mbstring.dll,php_mysql.dll,php_mysqli.dll in the??。.

1.e:\php\php.ini Extension=php_mbstring.dll in front of the point?
2.e:\php\ext has php_mbstring.dll.
3. Apache

If not, phpinfo extension_dir,configuration file (php.ini) path,loaded Configuration file? c. Print out? look.

Extension=php_mbstring.dll
Extension_dir = "E:\php\ext\";

Php_mbstring.dll,php_mysql.dll,php_mysqli.dll put them under the C:\Windows.
Path added e:/php; E:/php/ext
Apache has restarted every time, the computer is restarted, it is not working

Phpinfo () page:
Configuration File (php.ini) Path C:\windows
Loaded Configuration File E:\php\php.ini

Extension_dir E:\php\ext "; (There's a lot more behind this, as I've said before)

It's strange that you might have a problem with Apache.
Try a different wamp.

Finally down the Wampserver one-stop, then a long time to solve the problem in a few minutes, IQ catch urgent ...

  • 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.