<?php readfile("2.htm"); str_replace('{name}','baolima'); ?> 这样子不行啊,提示{name} Warning: Wrong parameter count for str_replace() in D:\http\test\2.php on line 3 到底该怎么写啊 郁闷
$s=file_get_content("top.htm"); echo str_replace('{name}','xxxxxx',$s); 提示错误:Fatal error: Call to undefined function: file_get_content() in D:\http\test\2.php on line 2
多谢了
readfile("post.htm");
?>
我举个例子
比如说有个top.htm,它里面的内容是<font color=red>{name}</font>
假如
readfile("top.htm");
然后用什么替换?
怎么个显示法?
是不是直接用浏览器浏览的时候,就已经自动替换为了top.htm中的内容了?
多谢
$s=file_get_content("top.htm");
str_replace('{name}','xxxxxx',$s);
$s=readfile("top.htm");他们有什么区别那
浏览器没有任何显示
我用bushi 代替{name}
可是浏览器没有任何反应阿
为沙阿
echo str_replace('{name}','xxxxxx',$s);
echo $s;
readfile("2.htm");
str_replace('{name}','baolima');
?>
这样子不行啊,提示{name}
Warning: Wrong parameter count for str_replace() in D:\http\test\2.php on line 3
到底该怎么写啊
郁闷
echo str_replace('{name}','xxxxxx',$s);
提示错误:Fatal error: Call to undefined function: file_get_content() in D:\http\test\2.php on line 2
$s=implode("",$s);
echo str_replace('{name}','xxxxxx',$s);