http://openpne.org.cn/
windows版本的
在本地电脑上不能通过
错误提示
Fatal error: Call to undefined function mb_language() in E:\web\php\OpenPNE\config.php on line 406
没接触过php+mysql
php版本5.0
mysql4.1

解决方案 »

  1.   

    mb_language('Neutral');
    ini_set('mbstring.detect_order', 'auto');
    ini_set('mbstring.http_input'  , 'auto');
    ini_set('mbstring.http_output' , 'pass');
    ini_set('mbstring.internal_encoding', 'UTF-8');
    ini_set('mbstring.script_encoding'  , 'UTF-8');
    ini_set('mbstring.substitute_character', 'none');
    mb_regex_encoding('UTF-8');
    mb_substitute_character("long");
    mb_substitute_character(0x3013);406-415行的代码
      

  2.   

    php_mbstring.dll 
    看看你php的lib库里有没有这个文件
    顺便看看你php.ini里
    extension=php_mbstring.dll
    前面的;去掉了吗?
      

  3.   

    php.ini
    ;extension=php_ldap.dll
    ;extension=php_mbstring.dll
    php_mbstring.dll 
    也有啊
    这个程序应该不是很难
    关键在于我没搞过php
    能不能下载一个调试好了
    告诉我怎么做
    安装文档我也看不大懂
    下面附上安装文档
    OpenPNE安装向导
    最终更新日: 2008/9/18安装步骤
    0. 首先 
    1. 目录结构 
    2. 配置文件变更 
    3. 服务器设定 
    3-1. Apache设定 
    3-2. cron设定 
    4. OpenPNE数据库做成 
    5. 安装模块执行 
    6. 访问管理页面 --------------------------------------------------------------------------------0. 首先
    以下顺序为OpenPNE-2.12.3中文版为基础制作完成。OpenPNE在以下服务器环境下可以正常运作。Apache 1.3.*/2.0.* 以上 
    PHP 4.3.*/5.0.* (推荐ASPI) 
    PHP的mbstring扩展模块 
    PHP的GD库 (JPEG/GIF/PNG) 
    PHP的mcrypt扩展模块 
    PHP的curl扩展模块(重要:若没有则无法使用msn邀请会员) 
    MySQL 4.1/5.0 
    邮件服务器 
    推荐Postfix 2.1.* 
    1. 文件设置
    OpenPNE所包含的文件结构如下设置到Web服务器上。- OPENPNE_DIR
      ├ bin
      ├ lib          <--- OPENPNE_LIB_DIR
      ├ var          <--- OPENPNE_VAR_DIR
      │ ├ img_cache
      │ │ ├ gif [777]
      │ │ │ ├ w_h [777]
      │ │ │ ├ w_h_raw [777]
      │ │ │ ├ w76_h76 [777]
      │ │ │ ├ w120_h120 [777]
      │ │ │ └ w180_h180 [777]
      │ │ ├ jpg [777]
      │ │ │ ├ w_h [777]  
      │ │ │    ... [777]
      │ │ └ png [777]
      │ │    ├ w_h [777]
      │ │       ... [777]
      │ ├ log [777]
      │ ├ rss_cache [777]
      │ ├ templates_c [777]
      │ └ tmp [777]
      ├ webapp       <--- OPENPNE_WEBAPP_DIR
      ├ webapp_biz   <--- OPENPNE_WEBAPP_BIZ_DIR
      └ webapp_ext   <--- OPENPNE_WEBAPP_EXT_DIR(从浏览器可以访问)
    - public_html (可以变更其文件目录名)
      ├ config.inc.php (OPENPNE_DIR 指定文件目录)
      ├ index.php
         ...※[777]为linux或BSD例。其他环境请各自设置成相应的值。
    可以修改public_html 的路径和文件名。把public_html的文件夹路径放置到OPENPNE_DIR文件夹(默认配置)以外时,请把public_html下的config.inc.php内容修改掉。另外,请赋予OPENPNE_DIR/var 下的全部文件夹的读写权限(例777)。$ chmod -R 777 var/*--------------------------------------------------------------------------------把OpenPNE图像的cache文件夹可以设置到 public_html 下面,Apache可以直接读入cache图像。 (把OpenPNE的设定文件config.php中的OPENPNE_IMG_CACHE_PUBLIC设置为true)让此技能有效时,在Apache的设定中把mod_rewrite设置为有效,让其可以使用.htaccess,或者在httpd.conf中做同样的改动。- OPENPNE_DIR
      ├ bin
      ├ lib          <--- OPENPNE_LIB_DIR
      ├ var          <--- OPENPNE_VAR_DIR
      │ ├ log [777]
      │ ├ rss_cache [777]
      │ ├ templates_c [777]
      │ └ tmp [777]
      ├ webapp       <--- OPENPNE_WEBAPP_DIR
      ├ webapp_biz   <--- OPENPNE_WEBAPP_BIZ_DIR
      └ webapp_ext   <--- OPENPNE_WEBAPP_EXT_DIR(浏览器可以浏览)
    - public_html (可以更改文件目录名)
      ├ config.inc.php (指定OPENPNE_DIR目录名)
      ├ index.php
      ├ img
      │ ├ .htaccess
      │ ├ index.php
      │ ├ gif [777]
      │ │ ├ w_h [777]
      │ │ ├ w_h_raw [777]
      │ │ ├ w76_h76 [777]
      │ │ ├ w120_h120 [777]
      │ │ └ w180_h180 [777]
      │ ├ jpg [777]
      │ │ ├ w_h [777]
      │ │    ... [777]
      │ └ png [777]
      │    ├ w_h [777]
      │       ... [777]
         ...※[777]为linux或BSD例。其他环境请各自设置成相应的值。
    2. 更改设定文件
    复制OPENPNE_DIR/config.php.sample为 OPENPNE_DIR/config.php,把config.php中的内容修改成自己的环境。OPENPNE_URL 
    基本URL(绝对路径) 
    DSN 
    (MySQL的)数据库接续情报。
    设置为接续用用户、密码、服务器host名、数据库名。 
    ENCRYPT_KEY 
    会员登录情报的暗号键(56位以内的ASCII文字)
    请设置为他人无法猜测的文字列。 
    MAIL_SERVER_DOMAIN 
    邮件服务器的域名(使用手机可以进行邮件投稿) 
    如果有需要可以把激活一些选择设定。调试模式的设定,正式运营时请设置为0。PHP的设定safe模式为有效场合时,请把MAIL_SET_ENVFROM设置为false。3. 服务器设定
    虚拟空间等因已经设定完成,请跳过这一段。3-1. Apache的设定
    修改httpd.confDirectoryIndex下追加index.php。 
    为访问public_html,修改如下。 
    [设定例]使用VirtualHost的httpd.conf设定 
    <VirtualHost *:80>
        ServerName        openPNE.example.com
        DocumentRoot      /home/username/OpenPNE/public_html/
        DirectoryIndex    index.html index.php
    </VirtualHost>
    修改httpd.conf,重起Apache。3-2. cron设定
    [设定例]向cron文件追加实行权限。chmod 755 bin/*.cron
    /etc/crontab中记录记录。# 6点发信&每20分更新RSS
    00   6 * * * root sh OPENPNE_DIR/bin/tool_send_dairy_news.cron     OPENPNE_DIR/bin/ [bin_path]/php
    00   6 * * * root sh OPENPNE_DIR/bin/tool_send_birthday_mail.cron  OPENPNE_DIR/bin/ [bin_path]/php
    00   6 * * * root sh OPENPNE_DIR/bin/tool_send_schedule_mail.cron  OPENPNE_DIR/bin/ [bin_path]/php
    */20 * * * * root sh OPENPNE_DIR/bin/tool_rss_cache.cron           OPENPNE_DIR/bin/ [bin_path]/php
    [bin_path]安装php的bin目录(例/usr/local/bin)。 
    4. 创建OpenPNE数据库
    使用MySQL 4.1时
    创建数据库,请执行以下SQL文。CREATE DATABASE `DBNAME` DEFAULT CHARACTER SET utf8 ;
    在准备好的数据库(例:DBNAME)中按顺序执行以下SQL文。OPENPNE_DIR/setup/sql/install/install-1.00-create_tables-mysql41.sql 
    OPENPNE_DIR/setup/sql/install/install-1.00-insert_data.sql 
    [执行例] 
    $ mysql -u username -p --default-character-set=utf8 DBNAME < install-1.00-create_tables-mysql41.sql
    $ mysql -u username -p --default-character-set=utf8 DBNAME < install-1.00-insert_data.sql
    5. 执行安装模块
    从浏览器中请访问以下地址。(安装后无法再访问)OPENPNE_URL?m=setup
    (例) http://openPNE.example.com/?m=setup
    在这里输入SNS名、管理用账号、初期用户设定。6. 访问管理页面
    请用安装时设定的管理用账号的用户名、密码登录。登录后,从管理菜单的「SNS设定变更」中可以修改SNS的基本信息。OPENPNE_URL?m=admin
    (例) http://openPNE.example.com/?m=admin
    变更管理页面的URL时,请修改设定文件config.php内的ADMIN_MODULE_NAME值。比如例,修改为abcde 
    OPENPNE_URL?m=abcde
    (例) http://openPNE.example.com/?m=abcde
    从这个URL可以访问管理页面。
    另外,管理菜单的“网页名随机生成”功能能够替换掉页面名,因为能够更改管理页面内部的页面名,处于安全考虑,建议安装成功后执行。
      

  4.   

    php.ini 
    ;extension=php_ldap.dll 
    ;extension=php_mbstring.dll 
    把前面的;去掉。重启apache
      

  5.   

    去掉了所有extension前面的;
    错误还是一样啊!
    电脑都重启了。Fatal error: Call to undefined function mb_language() in E:\web\php\OpenPNE\config.php on line 406
      

  6.   

    我的php.ini几乎每行前面都有;
    是不是都要去掉啊?