html embeded 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>
When I run the above code in browser, firefox render it like this
Hello World
'; ?
I am doing my coding in Windows XP/IIS 5.1. I have PHP setup correctly because i have no problem running .php file. The problem seem to me that IIS can't render php code embedded inside html.
Does anyone know how to fix this problem or should i switch to Apache?