喜悦国际村 
» 游客:  注册 | 登录 | 搜索 | 统计 | 喜悦证交所 | 帮助

RSS 订阅当前论坛  

$5.95 Web Hosting     

上一主题 下一主题
     
标题: [问题] 遇到 Call to undefined function: mb_substr()  
 
yzwolf (yzwolf)
注册会员
Rank: 2
一般会员



UID 30898
精华 0
积分 66
帖子 60
金钱 66 喜悦币
威望 0
人脉 0
阅读权限 20
注册 2004-9-6
状态 离线
[广告]: Enom域名自助付费 自助注册 自助PUSH 主流域名COM等一律57.99元年
遇到 Call to undefined function: mb_substr()

遇到 Call to undefined function: mb_substr()
以为是Linux下的编译Php时没有加--enable-mbstring,但是去看的时候发现
'./configure' '--prefix=/usr/local/php' '--with-mysql=/usr/local/mysql' '--with-gd=/usr/local/modules/gd' '--with-jpeg-dir=/usr/local/modules/jpeg6' '--with-zlib' '--enable-track-vars' '--with-png' '--with-gettext' '--with-freetype-dir=/usr/local/modules/freetype' '--enable-magic-quotes' '--with-mcrypt' '--enable-mbstring=shared' '--with-libxml' '--with-mail' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-pear' '--enable-sockets' '--enable-ftp' '--enable-force-cgi-redirect' '--with-config-file-path=/usr/local/php/etc'
加了的
可是还是出现以上错误 ,迷茫了 ,请教
2008-4-5 10:31 AM#1
查看资料  发短消息  顶部
 
LuckLrj (中国php中的爱因斯坦)
版主
Rank: 7Rank: 7Rank: 7
老会员


UID 64836
精华 0
积分 2323
帖子 3118
金钱 2323 喜悦币
威望 0
人脉 0
阅读权限 100
注册 2005-6-19
状态 离线
[广告]: 代充Paypal帐号美元
phpinfo();或者看看安装说明,是不是需要其他东西



学习,工作累了,请访问我的小站,娱乐一下。http://www.52sunny.net
2008-4-5 11:18 AM#2
查看资料  Blog  发短消息  顶部
 
yzwolf (yzwolf)
注册会员
Rank: 2
一般会员



UID 30898
精华 0
积分 66
帖子 60
金钱 66 喜悦币
威望 0
人脉 0
阅读权限 20
注册 2004-9-6
状态 离线
[推荐阅读] 高薪急聘! PHP高级程序员
回复 #2 LuckLrj 的帖子

我是自己写的程序中间就用了  <?=mb_substr($row['pic_topic'],0,6,'UTF-8')?> 这样的一句 而且在phpmyadmin中也提示没有找到,所以我想不是我程序写的有问题
PHPinfo信息如下 ,个别有关服务器安全的信息我用*代替了

System  Linux ottin 2.6.9-42.0.10.ELsmp #1 SMP Tue Feb 27 10:11:19 EST 2007 i686  
Build Date  Apr 28 2006 14:49:13  
Configure Command  './configure' '--prefix=/usr/local/php' '--with-mysql=/usr/local/mysql' '--with-gd=/usr/local/modules/gd' '--with-jpeg-dir=/usr/local/modules/jpeg6' '--with-zlib' '--enable-track-vars' '--with-png' '--with-gettext' '--with-freetype-dir=/usr/local/modules/freetype' '--enable-magic-quotes' '--with-mcrypt' '--enable-mbstring=shared' '--with-libxml' '--with-mail' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-pear' '--enable-sockets' '--enable-ftp' '--enable-force-cgi-redirect' '--with-config-file-path=/usr/local/php/etc'  
Server API  Apache 2.0 Handler  
Virtual Directory Support  disabled  
Configuration File (php.ini) Path  /usr/local/php/etc/php.ini  
PHP API  20020918  
PHP Extension  20020429  
Zend Extension  20050606  
Debug Build  no  
Zend Memory Manager  enabled  
Thread Safety  disabled  
Registered PHP Streams  php, http, ftp, compress.zlib  

This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with Zend Extension Manager v1.0.9, Copyright (c) 2003-2006, by Zend Technologies with Zend Optimizer v2.6.2, Copyright (c) 1998-2006, by Zend Technologies  


--------------------------------------------------------------------------------

PHP Credits

--------------------------------------------------------------------------------

Configuration
PHP Core
Directive Local Value Master Value
allow_call_time_pass_reference On On
allow_url_fopen On On
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_prepend_file no value no value
browscap no value no value
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_classes no value no value
disable_functions no value no value
display_errors On On
display_startup_errors Off Off
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl On On
error_append_string no value no value
error_log no value no value
error_prepend_string no value no value
error_reporting 2039 2039
expose_php On On
extension_dir ./ ./
file_uploads On On
gpc_order GPC GPC
highlight.bg #FFFFFF #FFFFFF
highlight.comment #FF8000 #FF8000
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
html_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .:/usr/local/php/lib/php .:/usr/local/php/lib/php
log_errors Off Off
log_errors_max_len 1024 1024
magic_quotes_gpc On On
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
max_execution_time 300 300
max_input_time 600 600
open_basedir no value no value
output_buffering no value no value
output_handler no value no value
post_max_size 20M 20M
precision 12 12
register_argc_argv On On
register_globals On On
report_memleaks On On
safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value
sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i  /usr/sbin/sendmail -t -i  
serialize_precision 100 100
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 20M 20M
upload_tmp_dir no value no value
user_dir no value no value
variables_order EGPCS EGPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance On On


Zend Optimizer
Optimization Pass 1  enabled  
Optimization Pass 2  enabled  
Optimization Pass 3  enabled  
Optimization Pass 4  enabled  
Optimization Pass 9  enabled  
Zend Loader  enabled  
License Path  no value  


apache2handler
Apache Version  Apache/2.0.55 (Unix) DAV/2 PHP/4.4.2  
Apache API Version  20020903  
Server Administrator  webmaster@dummy-host.example.com  
Hostnameort  ******:0  
User/Group  nobody(99)/-1  
Max Requests  Per Child: 10000 - Keep Alive: on - Max Per Connection: 100  
Timeouts  Connection: 60 - Keep-Alive: 15  
Virtual Server  Yes  
Server Root  /usr/local/apache  
Loaded Modules  core prefork http_core mod_so mod_access mod_auth mod_auth_anon mod_auth_dbm mod_auth_digest mod_ext_filter mod_include mod_log_config mod_env mod_expires mod_headers mod_setenvif mod_mime mod_dav mod_status mod_autoindex mod_asis mod_info mod_cgi mod_dav_fs mod_vhost_alias mod_negotiation mod_dir mod_imap mod_actions mod_speling mod_userdir mod_alias mod_rewrite sapi_apache2  

Directive Local Value Master Value
engine 1 1
last_modified 0 0
xbithack 0 0


Apache Environment
Variable Value
HTTP_ACCEPT  image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */*  
HTTP_ACCEPT_LANGUAGE  zh-cn  
HTTP_UA_CPU  x86  
HTTP_ACCEPT_ENCODING  gzip, deflate  
HTTP_USER_AGENT  Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; WPS)  
HTTP_HOST  ******
HTTP_CONNECTION  Keep-Alive  
PATH  /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/java/jdk1.5.0_09/bin:/root/bin  
SERVER_SIGNATURE  <address>Apache/2.0.55 (Unix) DAV/2 PHP/4.4.2 Server at ad.xiao15.com Port 80</address>  
SERVER_SOFTWARE  Apache/2.0.55 (Unix) DAV/2 PHP/4.4.2  
SERVER_NAME  ******
SERVER_ADDR  ******
SERVER_PORT  80  
REMOTE_ADDR  125.34.28.207  
DOCUMENT_ROOT  /home/adadmin/adphp  
SERVER_ADMIN  webmaster@dummy-host.example.com  
SCRIPT_FILENAME  /home/adadmin/adphp/i.php  
REMOTE_PORT  59051  
GATEWAY_INTERFACE  CGI/1.1  
SERVER_PROTOCOL  HTTP/1.1  
REQUEST_METHOD  GET  
QUERY_STRING  no value  
REQUEST_URI  /i.php  
SCRIPT_NAME  /i.php  


HTTP Headers Information
HTTP Request Headers
HTTP Request  GET /i.php HTTP/1.1  
Accept  image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */*  
Accept-Language  zh-cn  
UA-CPU  x86  
Accept-Encoding  gzip, deflate  
User-Agent  Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; WPS)  
Host  ad.xiao15.com  
Connection  Keep-Alive  
HTTP Response Headers
X-Powered-By  PHP/4.4.2  
Set-Cookie  PHPSESSID=3f9b7f77c9c4c4514aa6de975388ad3c; path=/  
Expires  Thu, 19 Nov 1981 08:52:00 GMT  
Cache-Control  no-store, no-cache, must-revalidate, post-check=0, pre-check=0  
Pragma  no-cache  
Keep-Alive  timeout=15, max=100  
Connection  Keep-Alive  
Transfer-Encoding  chunked  
Content-Type  text/html  


ctype
ctype functions  enabled  


ftp
FTP support  enabled  


gd
GD Support  enabled  
GD Version  2.0 or higher  
FreeType Support  enabled  
FreeType Linkage  with freetype  
GIF Read Support  enabled  
GIF Create Support  enabled  
JPG Support  enabled  
PNG Support  enabled  
WBMP Support  enabled  


gettext
GetText Support  enabled  


mcrypt
mcrypt support enabled
version  >= 2.4.x  
Supported ciphers  cast-128 gost rijndael-128 twofish arcfour cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledes  
Supported modes  cbc cfb ctr ecb ncfb nofb ofb stream  

Directive Local Value Master Value
mcrypt.algorithms_dir no value no value
mcrypt.modes_dir no value no value


mysql
MySQL Support enabled
Active Persistent Links  0  
Active Links  0  
Client API version  4.1.18  
MYSQL_MODULE_TYPE  external  
MYSQL_SOCKET  /tmp/mysql.sock  
MYSQL_INCLUDE  -I/usr/local/mysql/include/mysql  
MYSQL_LIBS  -L/usr/local/mysql/lib/mysql -lmysqlclient  

Directive Local Value Master Value
mysql.allow_persistent On On
mysql.connect_timeout 60 60
mysql.default_host no value no value
mysql.default_password no value no value
mysql.default_port no value no value
mysql.default_socket no value no value
mysql.default_user no value no value
mysql.max_links Unlimited Unlimited
mysql.max_persistent Unlimited Unlimited
mysql.trace_mode Off Off


overload
User-Space Object Overloading Support  enabled  


pcre
PCRE (Perl Compatible Regular Expressions) Support  enabled  
PCRE Library Version  6.2 01-Aug-2005  


posix
Revision  $Revision: 1.51.2.4.2.1 $  


session
Session Support  enabled  
Registered save handlers  files user  

Directive Local Value Master Value
session.auto_start On On
session.bug_compat_42 On On
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 100 100
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp /tmp
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid Off Off


sockets
Sockets Support  enabled  


standard
Regex Library  Bundled library enabled  
Dynamic Library Support  enabled  
Path to sendmail  /usr/sbin/sendmail -t -i  

Directive Local Value Master Value
assert.active 1 1
assert.bail 0 0
assert.callback no value no value
assert.quiet_eval 0 0
assert.warning 1 1
auto_detect_line_endings 0 0
default_socket_timeout 60 60
safe_mode_allowed_env_vars PHP_ PHP_
safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH
url_rewriter.tags a=href,area=href,frame=src,input=src,form=,fieldset= a=href,area=href,frame=src,input=src,form=,fieldset=
user_agent no value no value


tokenizer
Tokenizer Support  enabled  


xml
XML Support  active  
XML Namespace Support  active  
EXPAT Version  1.95.6  


zlib
ZLib Support  enabled  
Compiled Version  1.1.4  
Linked Version  1.1.4  

Directive Local Value Master Value
zlib.output_compression Off Off
zlib.output_compression_level -1 -1
zlib.output_handler no value no value


Additional Modules
Module Name


Environment
Variable Value
HOSTNAME  ottin  
SHELL  /bin/bash  
TERM  xterm  
HISTSIZE  1000  
SSH_CLIENT  ::ffff:125.34.30.226 44149 22  
SSH_TTY  /dev/pts/0  
USER  root  
LD_LIBRARY_PATH  /usr/local/apache/lib:  
LS_COLORS  no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01r=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:  
PATH  /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/java/jdk1.5.0_09/bin:/root/bin  
MAIL  /var/spool/mail/root  
PWD  /home/adadmin/adphp  
INPUTRC  /etc/inputrc  
JAVA_HOME  /usr/java/jdk1.5.0_09  
HOME  /root  
SHLVL  2  
LOGNAME  root  
SSH_CONNECTION  ::ffff:125.34.30.226 44149 ::ffff:***** 22
CLASSPATH  :/usr/java/jdk1.5.0_09/lib/tools.jar  
LESSOPEN  |/usr/bin/lesspipe.sh %s  
G_BROKEN_FILENAMES  1  
_  /usr/local/apache/bin/httpd  


PHP Variables
Variable Value
PHP_SELF  /i.php  
_SERVER["HTTP_ACCEPT"] image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */*
_SERVER["HTTP_ACCEPT_LANGUAGE"] zh-cn
_SERVER["HTTP_UA_CPU"] x86
_SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate
_SERVER["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; WPS)
_SERVER["HTTP_HOST"] ******
_SERVER["HTTP_CONNECTION"] Keep-Alive
_SERVER["ATH"] /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/java/jdk1.5.0_09/bin:/root/bin
_SERVER["SERVER_SIGNATURE"] <address>Apache/2.0.55 (Unix) DAV/2 PHP/4.4.2 Server at ad.xiao15.com Port 80</address>  
_SERVER["SERVER_SOFTWARE"] Apache/2.0.55 (Unix) DAV/2 PHP/4.4.2
_SERVER["SERVER_NAME"] *******
_SERVER["SERVER_ADDR"] *****
_SERVER["SERVER_PORT"] 80
_SERVER["REMOTE_ADDR"] *******
_SERVER["DOCUMENT_ROOT"] /home/admin
_SERVER["SERVER_ADMIN"] webmaster@dummy-host.example.com
_SERVER["SCRIPT_FILENAME"] /home/****
_SERVER["REMOTE_PORT"] 59051
_SERVER["GATEWAY_INTERFACE"] CGI/1.1
_SERVER["SERVER_PROTOCOL"] HTTP/1.1
_SERVER["REQUEST_METHOD"] GET
_SERVER["QUERY_STRING"] no value
_SERVER["REQUEST_URI"] /i.php
_SERVER["SCRIPT_NAME"] /i.php
_SERVER["HP_SELF"] /i.php
_SERVER["ATH_TRANSLATED"] /******
_SERVER["argv"] Array
(
)

_SERVER["argc"] 0
_ENV["HOSTNAME"] ottin
_ENV["SHELL"] /bin/bash
_ENV["TERM"] xterm
_ENV["HISTSIZE"] 1000
_ENV["SSH_CLIENT"] ::ffff:125.34.30.226 44149 22
_ENV["SSH_TTY"] /dev/pts/0
_ENV["USER"] root
_ENV["LD_LIBRARY_PATH"] /usr/local/apache/lib:
_ENV["LS_COLORS"] no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01r=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
_ENV["PATH"] /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/java/jdk1.5.0_09/bin:/root/bin
_ENV["MAIL"] /var/spool/mail/root
_ENV["PWD"] /home/adadmin/adphp
_ENV["INPUTRC"] /etc/inputrc
_ENV["JAVA_HOME"] /usr/java/jdk1.5.0_09
_ENV["HOME"] /root
_ENV["SHLVL"] 2
_ENV["LOGNAME"] root
_ENV["SSH_CONNECTION"] ::ffff:125.34.30.226 44149 ::ffff:***** 22
_ENV["CLASSPATH"] :/usr/java/jdk1.5.0_09/lib/tools.jar
_ENV["LESSOPEN"] |/usr/bin/lesspipe.sh %s
_ENV["G_BROKEN_FILENAMES"] 1
_ENV["_"] /usr/local/apache/bin/httpd


PHP License
This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net.

[ 本帖最后由 yzwolf 于 2008-4-5 12:31 PM 编辑 ]
2008-4-5 12:28 PM#3
查看资料  发短消息  顶部
 
yzwolf (yzwolf)
注册会员
Rank: 2
一般会员



UID 30898
精华 0
积分 66
帖子 60
金钱 66 喜悦币
威望 0
人脉 0
阅读权限 20
注册 2004-9-6
状态 离线
[推荐阅读] 替友求职美工工作
回复 #1 yzwolf 的帖子

没有人知道吗?
2008-4-6 09:40 AM#4
查看资料  发短消息  顶部
 
LuckLrj (中国php中的爱因斯坦)
版主
Rank: 7Rank: 7Rank: 7
老会员


UID 64836
精华 0
积分 2323
帖子 3118
金钱 2323 喜悦币
威望 0
人脉 0
阅读权限 100
注册 2005-6-19
状态 离线
[推荐阅读] 求救:cakephp+smarty 类继承效率问题
libmbfl is necesarry for mbstring. libmbfl is bundled with mbstring. If libmbfl is already installed on the system, --with-libmbfl[=DIR] can be specified to use the installed library.

摘自手册




学习,工作累了,请访问我的小站,娱乐一下。http://www.52sunny.net
2008-4-6 01:07 PM#5
查看资料  Blog  发短消息  顶部
     


  可打印版本 | 推荐给朋友 | 订阅主题 | 收藏主题 | 开通个人空间  


 




Powered by Discuz! 6.1.0  © 2001-2010 Comsenz Inc.
Processed in 0.039131 second(s), 6 queries

(冀ICP备05009913号) 管理员:sadly 邮箱/MSN: sadly@phpx.com QQ:824008(长隐) 清除 Cookies - - Archiver - WAP