开发者

Why I can not embed my php code in html code

Sorry guys this is probably pretty simple, but i've been up way too late now. I have a basic html page and when i try to put any php in the body it reads it as a comment.

<html>
<body>
.... ....
</p>
</div>
<div id='result' class='ui-widget' style='width:70%;margin:0 auto'>
</div>
</div>
<?php 
include(WEB_ROOT.'/template/footer.php'); 
?>

</body>
</html>

Is there anything wro开发者_StackOverflow中文版ng?


You must use a server like Apache which interprets the page. What's more, it should have a .php extension.


Problem of extension ! .PHP not .HTML ! The opposite is correct ! including html in php page

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜