[求助][phpmychat]安装的问题

Home Home
引用 | 编辑 达人村惟禄
2004-12-14 09:23
楼主
推文 x0
安装的其中一个步骤 这是什么意思呢

Here's the config file created according to the information you have entered.

Copy all of it, including the first and last lines, and then paste it into your favourite text-editor (Notepad, Vi...). After this you *must* enter the database users password on line 7 and save the file as config.lib.php3.

Ensure that there is neither empty line neither space character, neither before the php opening tag neither after the closing one, then you can upload the config file to your server in the config dir (replace the existing one) and secure it (see the install.txt file in the docs dir for more information on this).

Don't forget to have a look at the warning message bellow.

=======================================================

<?php
// Database settings
define("C_DB_TYPE", 'mysql');
define("C_DB_HOST", 'localhost');
define("C_DB_NAME", Ƈ');
define("C_DB_USER", 'root');
define("C_DB_PASS", '*** Complete here ***');
define("C_MSG_TBL", 'c_messages');
define("C_USR_TBL", 'c_users');
define("C_REG_TBL", 'c_reg_users');
define("C_BAN_TBL", 'c_ban_users');

// Cleaning settings for messages and usernames
define("C_MSG_DEL", ྜ');
define("C_USR_DEL", Ɗ');
define("C_REG_DEL", Ɔ');

// Proposed rooms
$DefaultChatRooms = array('Default', 'MyRoom1', 'MyRoom2');
$DefaultPrivateRooms = array('Priv1', 'Priv2');

// Language settings
define("C_LANGUAGE", 'chinese_traditional');
define("C_MULTI_LANG", Ƈ');

// Registration of users
define("C_REQUIRE_REGISTER", Ɔ');
define("C_EMAIL_PASWD", Ɔ');

// Security and restriction settings
define("C_SHOW_ADMIN", Ɔ');
define("C_SHOW_DEL_PROF", Ƈ');
define("C_VERSION", ƈ');
define("C_BANISH", Ɔ');
define("C_NO_SWEAR", Ɔ');
define("C_SAVE", '*');

// Messages enhancements
define("C_USE_SMILIES", Ƈ');
define("C_HTML_TAGS_KEEP", 'simple');
define("C_HTML_TAGS_SHOW", Ƈ');

// Default display seetings
define("C_TMZ_OFFSET", Ɔ');
define("C_MSG_ORDER", Ɔ');
define("C_MSG_NB", ཐ');
define("C_MSG_REFRESH", ཆ');
define("C_SHOW_TIMESTAMP", Ƈ');
define("C_NOTIFY", Ƈ');
define("C_WELCOME", Ƈ');
?>

======================================================

Once you have completed the steps above, phpMyChat is near ready to run.
Just sets manually three variables at the top of the 'chat/admin/mail4admin.lib.php3'
script... and have some nice chat discussions.

After you have got phpMyChat up and running you should remove the
setup.php3 file and the whole 'chat/install' dir from your server.

献花 x0
引用 | 编辑 kivimico
2004-12-17 17:11
1楼
  
应该是叫你修改那段程式码里的Database的一些设定,设定完存到config.lib.php里
define("C_DB_NAME", '这里输入资料库名称');
define("C_DB_USER", '这里输入资料库使用者帐号');
define("C_DB_PASS", '这里输入资料库使用者密码');
-----------
弄完上面的后,要准备RUN论坛的时候请把mail4admin.lib.php的权限(档案属性"CHMOD")改成777
安装完后请删除setup.php3 和整个install资料夹

应该是这样啦

献花 x0