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

关于fasttemplate的有关问题

关于fasttemplate的问题
今天我写了一段php的fasttemplate代码如下
define(array(main   =>   main.tpl ,   newstable   =>   newstable.tpl ,   newsrow   =>   newsrow.tpl ));
$listf   =   fopen(   articlelist.txt ,   r   );
list($title,   $category,   $date,   $fname)   =   fgetcsv($listf,   4096,   : );
  while(   !feof($listf)   )
  {
$template-> assign(stitle,   $title);
$template-> assign(scategory,   $category);
$template-> assign(sdate,   $date);
$template-> assign(sfname,   $fname);
$template-> parse(newsrows,   .newsrow );
list($title,$category,$date,$fname)   =   fgetcsv($listf,   4096,   : );
  }
  $template-> parse(body,   newstable);
  $template-> parse(output,   main);
  $template-> fastprint(output);
?>
但网页输出几乎是文件class.fasttemplate.php3中的内容,百思不得其解,请各位高手帮忙。先谢了!!
------解决方案--------------------
class.fasttemplate.php3 ?!
php文件一般是以php扩展名结束的,如果你没有在服务器特别设置php3也是的话。
你把文件的扩展名改php试试
------解决方案--------------------
不是让你把php3改成php试试了吗?你试过了?
其它类似信息

推荐信息