Chinaunix
标题:
怎样用php语言搜索sendmail.mc里的某一行
[打印本页]
作者:
haitao431
时间:
2003-05-28 16:40
标题:
怎样用php语言搜索sendmail.mc里的某一行
我想问一下怎样用php语言搜索sendmail.mc里的某一行,
我需要更改sendmail.mc文件我想做成网页形式,给读者一个文本框提示请输入...
然后我去找并更改该怎么做
作者:
michee
时间:
2003-05-28 17:18
标题:
怎样用php语言搜索sendmail.mc里的某一行
var $filename="/etc/sendmail.cf";
$fp=fopen($filename,"r"
;
if($fp)
{
while($line=fgets($fp)) //每行读取
{
do your work!
}
}
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2