访问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真的都改了,
extension=php_mbstring.dll
extension_dir = e:\php\ext\;
php_mbstring.dll,php_mysql.dll,php_mysqli.dll都放到c:\windows下了
path加了e:/php;e:/php/ext
apache每次也有重启,电脑都重启了,就是不管用
phpinfo()页面下:
configuration file (php.ini) path c:\windows
loaded configuration file e:\php\php.ini
不过这里有问题
extension_dir e:\php\ext;
接着后面有这些:
; 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 will 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 may need to set an environment variable name that php
; will look for to know it is ok to continue execution. setting this variable may
; cause security issues, know what you are 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 was to set path_translated to script_filename, and to not grok
; what path_info is. for more information on path_info, see the cgi specs. setting
; this to 1 will cause php cgi to fix its 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 this option is set to 1 php will 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 (will 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 be 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
; for this 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 have to deal with files from macintosh systems,
; or you are running on a mac and need to deal with files from
; unix or win32 systems, setting this flag will cause php to
; automatically detect the eol character in those files so that
; fgets() and file() will 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 have an 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 only provide the name of the extension, php will look for it in its
; default extension directory.
;
; windows extensions
; note that odbc support is built in, so no dll is needed for it.
; note that many dll files are 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 be 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 be 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
……还有很多
不知道为什么……
求大神解脱
回复讨论(解决方案)
看看是否有mbstring,如果?有那就表示mbstring?展?有成功。
extension_dir e:\php\ext;
把php_mbstring.dll,php_mysql.dll,php_mysqli.dll放?去。
我的没有phpinfo里没有mbstring,为什么呢?
ext文件夹下已经有所有的dll了
看看是否有mbstring,如果?有那就表示mbstring?展?有成功。
extension_dir e:\php\ext;
把php_mbstring.dll,php_mysql.dll,php_mysqli.dll放?去。
1.e:\php\php.ini extension=php_mbstring.dll 前面的分?去掉
2.e:\php\ext ?面有php_mbstring.dll
3.重?apache
如果?是不行,?把phpinfo的 extension_dir,configuration file (php.ini) path,loaded configuration file ?三?打印出?看看。
extension=php_mbstring.dll
extension_dir = e:\php\ext\;
php_mbstring.dll,php_mysql.dll,php_mysqli.dll都放到c:\windows下了
path加了e:/php;e:/php/ext
apache每次也有重启,电脑都重启了,就是不管用
phpinfo()页面下:
configuration file (php.ini) path c:\windows
loaded configuration file e:\php\php.ini
extension_dir e:\php\ext;(这后面有多了很多,前面已经说过了)
真奇怪,可能是你的apache有问题。
换个wamp试试。
最后下了wampserver一站式搞定,那么长时间的问题几分钟就解决了,智商捉急……