PHP system function strange behavior
<p>I have a strange behavior with PHP system function. In this php script there are only 2 instructions (the rest being pure html):</p>

<pre><code>&lt;?php echo system('cgi-bin/gallery2/galleryheaderview.cgi'); ?&gt;
&lt;?php echo system('cgi-bin/gallery2/galleryview.cgi'); ?&gt;
</code></pre>

<p>The first cgi just returns a single line as you can check here
<a href="http://reboltutorial.com/cgi-bin/gallery2/galleryheaderview.cgi" rel="nofollow">http://reboltutorial.com/cgi-bin/gallery2/galleryheaderview.cgi</a></p>

<p>It returns </p>

<blockquote>
  <p>My Gallery</p>
</blockquote>

<p>But the whole php script returns My Gallery Twice:</p>

<blockquote>
  <p>My Gallery
  My Gallery</p>
</blockquote>

<p><a href="http://reboltutorial.com/gallery2.php" rel="nofollow">http://reboltutorial.com/gallery2.php</a></p>

<p>Is there a reason (I don't use My Gallery in second cgi script of course see <a href="http://reboltutorial.com/cgi-bin/gallery2/galleryview.cgi" rel="nofollow">http://reboltutorial.com/cgi-bin/gallery2/galleryview.cgi</a>) and how to prevent this ?</p>

<p>Thanks.</p>
