include .php in .html Windows IIS server
Posted: Sun Jul 16, 2006 1:04 pm
I was trying to include a php file into a file with the .html extension. Not with the .php extension.
DOESNT work:
http://www.pridenutrition.com/Test.html
DOES work:
http://www.hi-topswrigleyville.com/Test.html
The first is running on a Windows IIS based system and one is running on Unix.
Is this possible on a Windows IIS server? (i.e. Is there a fix to the one that DOESNT work.) Why does one work and not the other?
Here is my code (the same code was used on both servers):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<h1>
<?php echo '<p>Hello World</p>'; ?>
</h1>
</body>
</html>
DOESNT work:
http://www.pridenutrition.com/Test.html
DOES work:
http://www.hi-topswrigleyville.com/Test.html
The first is running on a Windows IIS based system and one is running on Unix.
Is this possible on a Windows IIS server? (i.e. Is there a fix to the one that DOESNT work.) Why does one work and not the other?
Here is my code (the same code was used on both servers):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<h1>
<?php echo '<p>Hello World</p>'; ?>
</h1>
</body>
</html>