Shared elements on html page

Well, I've been banging away at this and cant produce the results you mentioned. I have a file named "hello.htm" and the contents are as follows:

<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello</p>'; ?>
</body>
</html>


And all I get is a syntax error popup in IE when I view the page, but if i give that same file a php extension it works fine. Is there something I'm doing wrong here?
 
Is the PHP code being pased so you can still view it in IE? You host may not allow you to do this for some reason. You may have to contact them about it.
 
Yes, that is what I get when I view source on the pages as well. What config changes need to be done? My hosting company uses Win2k.
 
If they run apache just change the 'AddType' application/x-httpd-php .php .html to include what ever extensions you want.
 
Back
Top Bottom