开发者

static pages with php in movable type

Is it possible to have Movable Type spit out static html even though there is php code in the banner_header? I want to build a completely static page (no php addHandler allowed). Currently Movable type will echo out the php code if I view the source. Instead of doing that can Movable Type actually process my php 开发者_如何学编程so if I said <?php echo "hi";?> it would say hi on the page instead of <?php echo "hi";?>


Why don't you build your header and footer with MT instead?


A static Movable Type site produces html that is no different from a hand coded html file. I'm afraid it's impossible if you can't touch the .htaccess file (to add the handler).


It looks like you're publishing your site pages with .html extension, but without specifying the 'addhandler' .htaccess rule to interpret .html pages as PHP, your php coding would appear as such, instead of being interpretted as PHP coding.

This has nothing to do with the movable type capabilities.

You could either implement the addhandler .htaccess rule to make your .html pages be handler as PHP pages, or you could change your site files extensions to .php or finally you could just code your header and footer within movable type using static html coding.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜