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 wrong?
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.