html-embedded php code not executing when hosted on iis
- by Jack
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<TITLE></TITLE>
</HEAD>
<BODY>
<?php echo '<p>Hello World</p>'; ?>
</BODY>
</HTML>
When I run the above code in a browser, firefox renders it like this:
Hello World
'; ?>
I am doing my coding in Windows XP/IIS 5.1. I have PHP set up correctly because I have no problem running .php files. The problem, it seems to me, is that IIS can't render php code embedded inside html.
Does anyone know how to fix this problem or should i switch to Apache?