I am trying to embedded php into a html.
Here's the test code.
<html>
<body>
hello <BR>
<?php
echo "world is evil";
?>
</body>
</html>
I only see hello , text in echo doesn't appear on the browser.
I am not sure what is wrong with this.
Please let me know how to fix this
php in html
Moderator: General Moderators
-
cpetercarter
- Forum Contributor
- Posts: 474
- Joined: Sat Jul 25, 2009 2:00 am
Re: php in html
What is your script called? It should have the termination .php (not .html) if it is to parse php.
Re: php in html
I had the ext as html, I changed it to php and it works.
Thank you cpetercarter for your quick advice.
Thank you cpetercarter for your quick advice.