您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

关于fasttemplate的有关问题

2025/12/15 22:32:21发布15次查看
关于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试试了吗?你试过了?
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product