php include breaking
<p>I have a php page that generates all the html and echo's it. Now I want to write a php script that I can use include to handle the footer code. that way if I need to update the footer on all the pages I can just edit the code in the included page.</p>

<p>But when I use include("footer.php"); and the footer page contains the footer code that works if it exists on the page it breaks and prints the code. Im very confused as too why?</p>

<pre><code>  if(isset($_SESSION['user_cart']) &amp;&amp; count($_SESSION['user_cart']) &gt; 0)
</code></pre>

<p>Starts writing the code on the page if I include from  0) </p>

<p>Please help?</p>

<p>EDIT: The code in the footer is wrapped in <code>&lt;?php   ?&gt;</code></p>
