Oct 27, 2014 - mac    No Comments

让HTML页面支持php的include语法

sudo vi /etc/apache2/httpd.conf

添加一行:
AddType application/x-httpd-php .html
就可以了。

然后就可以在html页面里写这种代码了:

<?php include("../common-tpl/header.html") ?>

Got anything to say? Go ahead and leave a comment!