html-embedded php code not executing when hosted on iis
Posted
by Jack
on Stack Overflow
See other posts from Stack Overflow
or by Jack
Published on 2010-05-07T19:55:57Z
Indexed on
2010/05/07
20:08 UTC
Read the original article
Hit count: 173
php
<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?
© Stack Overflow or respective owner