请问一下!我哪里错了?



代码:
function template($template){
	if(!$template) $template='none';
	$path='./templates/default/index.htm';
//	$path='./templates/default/'.$template.'.'.htm;
	!file_exists($path) && $path='./templates/'.$template.'.'.htm;
	$data=file_get_contents($path);
	$str = preg_replace('/{([a-zA-Z]+)}/','<?php echo $GLOBALS[\'\\1\']; ?>',"\r\n?>\r\n".$data."\r\n<?php\r\n");
	return eval($str);
}
错误是:
代码:
Fatal error: main(): Failed opening required '' (include_path='.;c:\php4\pear') in D:\wwwroot\index.php on line 14