📄 1384.html
字号:
<TD background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif" colSpan=5>
<DIV align=right><FONT class=normalfont>当前位置:
<A href="index.html" tppabs="http://www.linuxhero.com/docs/index.html">本站首页</A>
<font color="#FF6699">>></font>
<A href="type19.html" tppabs="http://www.linuxhero.com/docs/type19.html">email</A> | <A href="copyright.html" tppabs="http://www.linuxhero.com/docs/copyright.html">版权说明</A></font></DIV>
</TD>
<TD><IMG height=22 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=1
border=0></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=10 cellPadding=0 width="100%" bgColor=#ffffff
border=0>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=3 width="100%" border=0>
<TR>
<TD vAlign=top align=middle width="60%">
<TABLE cellSpacing=0 cellPadding=0 width="100%"
background="images/back.gif" tppabs="http://www.linuxhero.com/docs/images/back.gif" border=0>
<TBODY>
<TR>
<TD vAlign=top width="80%">
<DIV align=center>
<FORM action="search.html" tppabs="http://www.linuxhero.com/docs/search.html" method=get>
</FORM>
<TABLE cellSpacing=0 cellPadding=0 width="95%"
border=0><TBODY>
<TR>
<TD background="images/bgi.gif" tppabs="http://www.linuxhero.com/docs/images/bgi.gif"
height=30></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=3 width="95%"
align=center border=0>
<TBODY>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=3 width="100%"
border=0>
<TBODY>
<TR>
<TD vAlign=top>
<p><FONT class=normalfont><B><font color=blue>imp问题集</font></B></FONT><BR><FONT class=smallfont color=#ff9900>2004-04-23 15:18 pm</FONT><BR><FONT class=normalfont>作者:颜国雄<br>来自:Linux知识宝库<br>联系方式:无名<br><br>分享imp 附件另存时的档名问题(2000/7/28) <br>
(颜国雄): <br>
imp(2.0.11) 在处理用 Outlook 寄来的附件档,下载的部份少了一个将档名解码的动作,以致於无法正确的抓到原来的档名,不过,这锅好像还是得怪 Outlook 老用自己的标准!! <br>
解决的方法很简单,只要在 imp/view.php3 中加入一行即可迎刃而解 <br>
<br>
找到 view.php3 中下面的部份 <br>
-------------------------------------------------------------------------- <br>
case DOWNLOAD_ATTACH: <br>
$mime = new mime_part_data; <br>
$mime->parse($part); <br>
<br>
/* This should force a save file dialog... */ <br>
/* doesn’t seem to force save file dialog, using RFC822 does <br>
* even for IE <br>
* header("Content-type: application/octet-stream"); */ <br>
header("Content-type: application/RFC822"); <br>
break; <br>
<br>
改成: <br>
-------------------------------------------------------------------------- <br>
case DOWNLOAD_ATTACH: <br>
$mime = new mime_part_data; <br>
$mime->parse($part); <br>
<br>
//就是下面这行啦!!将编码过的档名解码 <br>
$mime->name = chop(decode_mime_string($mime->name)); <br>
<br>
/* This should force a save file dialog... */ <br>
/* doesn’t seem to force save file dialog, using RFC822 does <br>
* even for IE <br>
* header("Content-type: application/octet-stream"); */ <br>
header("Content-type: application/RFC822"); <br>
break; <br>
<br>
<br>
简易安装 <br>
(蔡福兴):必须先把 apache php3 imap 装好! <br>
1.把 horde-1.0.10.tar.gz & imp-2.0.11.tar.gz 抓回来 <br>
2.tar zxvf horde-1.0.10.tar <br>
3.tar zxvf imp-2.0.11.tar.gz <br>
4.mv horde-1.0.10 (你WEB的root)/horde <br>
5.mv imp-2.0.11 (你WEB的root)/horde/imp <br>
6.cd (你WEB的root)/horde <br>
7.sh install.sh <br>
8.在浏览器上执行 http://(your web site)/horde/setup.php3 照指示一直按 Next <br>
9.sh secure.sh <br>
忘了告诉大家! <br>
imp相关档案可至以下网址抓取http://cnpa.yzu.edu.tw/~stylon/software/imp/ <br>
imp在本校的linux上有安装完成!应该没有问题! <br>
<br>
<br>
IMP增加同时上线人数(经测试45人以上没问题) <br>
(颜国雄): <br>
将 /etc/inetd.conf 中有关 imap 的那行 <br>
imap stream tcp nowait ................. <br>
改成 <br>
imap stream tcp nowait.300 ................. <br>
<br>
重新启动 inetd <br>
<br>
<br>
<br>
Q: 请问apache怎麽开启php3呢 谢谢 <br>
我在linux6.0下面. <br>
<br>
(颜国雄): 先找 mod_php* 的 rpm <br>
可在 ftp://www.tp.edu.tw/pub/mod_php3 中找到: <br>
mod_php3-3.0.12-1cc.i386.rpm <br>
mod_php3-imap-3.0.12-1cc.i386.rpm <br>
mod_php3-mysql-3.0.12-1cc.i386.rpm <br>
<br>
如果不使用资料库,只要安装前两个 <br>
rpm -Uvh mod_php3* <br>
<br>
然後修改 apache 的设定档(应该是在 /etc/httpd/conf/ 下吧) <br>
找设定档中有关 php 的部份,将解的 # 字号拿掉 <br>
存档後执行 /etc/rc.d/init.d/httpd restart 重新启动 apache <br>
<br>
(李权哲):装完php3的套件後,修改apache的相关设定档再重新启动apache, <br>
如: <br>
一.修改httpd.conf(apache的设定档,在 /etc/httpd/conf): <br>
第67行-->#LoadModule php3_module modules/libphp3.so <br>
改成-->LoadModule php3_module modules/libphp3.so <br>
第113行-->#AddModule mod_php3.c <br>
改成-->AddModule mod_php3.c <br>
二.修改 srm.conf 档: <br>
第30行-->DirectoryIndex index.html index.shtml index.cgi <br>
改成-->DirectoryIndex index.html index.shtml index.cgi index.php3 <br>
第164行-->#AddType application/x-httpd-php3 .php3 <br>
改成--->AddType application/x-httpd-php3 .php3 <br>
第165行-->#AddType application/x-httpd-php3-source .phps <br>
改成--->AddType application/x-httpd-php3-source .phps <br>
三.重新启动 apache: <br>
/etc/rc.d/init.d/httpd restart 或kill -1 apache的pid <br>
即可使用php3 <br>
<br>
IMP安装补充说明 <br>
(惠志坚): <br>
1.如何直接进入 imp 的 login 画面: <br>
a: 请将 http://(your web site)/horde <br>
改为 http://(your web site)/horde/imp <br>
2.如何在一进入 imp 的 login 画面就显示中文: <br>
a: 请在 /home/httpd/html/horde/imp/config/defaults.php3 <br>
将原来: <br>
$default->language = ’en’; <br>
改为: <br>
$default->language = ’big5’; <br>
<br>
(李权哲): <br>
在imp中如果要让user使用地址簿签名档等功能必 <br>
须先安装如MySql,mSQL等database server,如果您的 <br>
系统已安装了,必须再建立相关的dabase,table才可. <br>
因为本校系统装的是MySQL,故以MySQL为例,步 <br>
骤如下: <br>
一.首先以root连上MySQL. <br>
方法为:#mysql -uroot -p(您的密码) <br>
二.建立一名为imp的database,指令为: <br>
CREATE DATABASE imp; <br>
三.选择imp这个database,指令为: <br>
USE imp; <br>
四.建立imp_addr和imp_pref两个table,指令为: <br>
CREATE TABLE imp_addr ( user text, address text, <br>
nickname text, fullname text ); <br>
CREATE TABLE imp_pref ( user text, sig text, <br>
fullname text, replyto text,lang text); <br>
建立完後就可正常使用 <br>
<br>
有一点很重要,在执行setup.php3时,不可只猛按NEXT, <br>
在第五还是第六个步骤时,它会问要不要启动资料库功能, <br>
预设值是没有要改一下. <br>
<br>
<br>
IMP安装补充说明总整理(含资料库设定) <br>
(惠志坚): <br>
imp使用mysql资料库总整理(新增 imp 使用者方法): <br>
1. #mysql -uroot -p(您的密码) <br>
2.CREATE DATABASE imp; <br>
3.USE imp; <br>
4.CREATE TABLE imp_addr ( user text, address text, nickname text, fullname text ); <br>
5.CREATE TABLE imp_pref ( user text, sig text, fullname text, replyto text,lang text); <br>
6. GRANT ALL ON imp.* TO impuser@localhost IDENTIFIED BY '您的密码'; <br>
7. exit <br>
8. cd /home/httpd/html/horde <br>
9. sh install.sh <br>
10. 回到浏览器 http://(your web site)/horde/setup.php3 <br>
11. next 到第十页, 将资料库开启, 选项分别为: <br>
true , mysql , impuser , 您的密码 <br>
12sh secure.sh <br>
13. 修正之後画面会回英文, 要设定为中文的话, 在 /home/httpd/html/horde/imp/config/defaults.php3 <br>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -