We've inherited a site which includes PHP files. In moving this site to a new Windows 2003 host server, we're getting the following error:
The .SHTML file includes a .PHP file that has the following line:
<a href="/letter.shtml" <? if( $_SERVER['PHP_SELF']=="/letter.shtml"){ ?>class=leftnavhighlight<? } else { ?>class=leftnav<? } ?>><font face="Arial" size="2"><b>Letter</b></font></a>
When the page is served, I get the following:
class=leftnavhighlightclass=leftnav>Letter
instead of the expected:
Letter (with the corresponding styles applied).
It is a Windows 2003 server with PHP enabled on the server. We simply moved the files into the root directory, but are getting the above error instead of the file formatting correctly.
What did we miss? Why is the server showing the style script instead of interpreting it?