您好,欢迎访问一九零五行业门户网

php fopen 有关问题

php fopen 问题求助
templetest.php
php code
temp.html
php code {title} {file}
生成之后的界面
test.html
html code {title} {file} {title} hehe tst {file} tst hehe
尝试做文章静态化
问:为什么会出现这么多次、我只需要最后一次。。
------解决方案--------------------
$content = str_replace ({file},$file,$content);
// echo $content;
$content = str_replace ({title},$title,$content);
没有 . ,不然的话会把处理前后结果相连
其它类似信息

推荐信息