<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head><body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
<td><?(php语句)?></td>
</tr>
</table></body>
</html>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head><body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
<td><?(php语句)?></td>
</tr>
</table></body>
</html>
fread(X.php,)
str_replace();
fread(X.php,)
str_replace();
如:{header}就可以用正则来将其替换。但是像<td></td>这样的标签就不能,因为html中随处可见,如果要插入就会把所有的标签中都插入。改成<td>{insert}</td>就可以,你也可以用其他形式的标签如:<replace name=insert>像这样的标签也是可换的。具体可以参见phpe.net的模板技术专题。