html embeded 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
19:58 UTC
Read the original article
Hit count: 185
php
<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?
© Stack Overflow or respective owner