PHP files not loading properly
<p>I have a PHP file consisting of the following structure:</p>

<pre><code>&lt;html&gt;... headers, scripts &amp; styling
... some html here
&lt;?php
  if($_GET['v'] == 1)
  {
?&gt;
    ... html code here ...
&lt;?php
  }
  else
  {
?&gt;
    ... html code here ...
&lt;?php
  }
?&gt;
&lt;/html&gt;
</code></pre>

<p>Sometimes the file just loads half, for example if <code>v=1</code> what would load onto the screen (if I check with <code>View Source</code> also) is something like this: (relative to what I exampled above)</p>

<pre><code>&lt;html&gt;... headers, scripts &amp; styling
... some html here
    ... html cod
</code></pre>

<p>As you can see, the code just cuts off randomly. The is nothing obvious casing this such as a loop or anything. It happens in the middle of HTML code and not inside the <code>&lt;?php ?&gt;</code> tags.</p>

<p>It looks as if the server just decides to stop communicating right there-and-then for no reason. It also happens at a different and random place each time and sometimes loads perfectly fine.</p>

<p>It also only happens on my shared hosting account and not on my <code>localhost</code>.</p>

<p>Is there anything simples that might be causing this?
Did anyone experience this before?</p>
