在.php页面中包含.shtml文件?

时间:2012-11-27 21:22:37

标签: php html shtml

我想在.php页面中包含.shtml文件。我知道这是可能的,因为我之前已经做过(尽管我已经忘记了代码)。请有人帮忙吗?

2 个答案:

答案 0 :(得分:1)

我建议使用:

include_once('/includes/header.shtml');

答案 1 :(得分:0)

你有没有尝试过:

 echo file_get_contents('/includes/header.shtml');
 // or
 echo file_get_contents('includes/header.shtml');

它可能有用。

但我会开始将所有模板转换为任何可用的php模板引擎。

相关问题