title: Why does some php code display in browser?
body: <pre><code>if($xtype!="")
  {
      $xid = $_REQUEST['xid'];
  }
  Else
  {
      session_destroy();
      unset($_SESSION['uid']);
      unset($_SESSION['pwd']);
      unset($_SESSION['utype']);
      unset($_SESSION['user']);
  }
  
  echo "
  &lt;!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'&gt;&lt;html&gt;&lt;head&gt;&lt;TITLE&gt;TITLE&lt;/title&gt;&lt;link rel='stylesheet' type='text/css' href='xmlTree.css'/&gt;&lt;/head&gt;&lt;body&gt;&lt;BR&gt;&lt;table class=mtbl&gt;";
  
  $uname=$_SESSION['user'];
  
  if($xtype=="")
  {
  echo 
  "&lt;FORM METHOD=POST target=_self&gt;Username:&lt;/br&gt;&lt;Input  type=text name=uid&gt;&lt;/p&gt;Password:&lt;/br&gt;&lt;Input type=password name=pwd&gt;&lt;/p&gt;&lt;Input type=submit value=Login&gt;&lt;/FORM&gt;";
  }
  </code></pre>
  
  <p>The above code will display this in the browser :</p>
  
  <p><code>"; $uname=$_SESSION['user']; if($xtype=="") {  echo "</code></p>
  
  <p>And I don't know why. I checked settings in my httpd.conf, php.ini and nothing seems to make any difference **On the actual web server and on browser to this page it works 100% . Just in my WAMP setup it displays some php code in the browser. So if you would navigate to the actual website, then it displays perfectly. I am trying to test the site on my wamp VM and have copied the files from the server to my wamp. ** I am guessing that somewhere there is some setting that is different...</p>
  
  <p>Apache Version : 2.4.9 
  PHP Version : 5.5.12 
  MySQL Version : 5.6.17</p>