我用windows7系统做PHP程序,web服务器是IIS,其他的网站程序都可以运行,我做的其他的PHP页面也可以运行,但就是我的首页运行不了,首页中我用到了smarty模板,首页代码如下:
<?php
include("smarty_config.php");
//$title="smarty配置及简单应用";
$smarty->assign("title","smarty配置及简单应用");
$smarty->display("index.html");$content="最近做的糖尿病系统项目需要用到Smarty(不要告诉我你不知道什么是Smarty?),很久之前学习过了的,但现在也忘的差不多了,所以再来温习温习。这里有一个好消息,就是Smarty 3.0于2008年10月17日已经开始内测了,之前很多人都担心Smarty的更新问题,现在我想大家应该可以放心使用了,相信Smarty在3.0版本会带给我们更多惊喜。";
$smarty->assign("content",$content);
$smarty->display("index.html");
?>
模板页代码是:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en_US" xml:lang="en_US">
 <head>
  <title><!-- {$title} --> </title>
 </head>
 <body>
网页标题:{$title}<br>
网页内容<font face="华文行楷" color="red" size="6">{$content}</font>
测试section循环{testarray}<br>
<!--{section name='testas' loop='$testarray'}
 {$testarray[testas].step1}
{/section} -->
 </body>
</html>
刚开始的时候是可以运行的,但过了一会我在运行就出现了:HTTP内部服务器错误。请问这是什么原因。