Problem embedding a cgi within PHP using system
<p>Hi I am using php system to embed a cgi-script like this</p>

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

<p>Problem is my cgi-script writes</p>

<pre><code>print "content-type: text/html^/"
</code></pre>

<p>so that PHP will show up </p>

<pre><code>"content-type: text/html"
</code></pre>

<p>above the html page. This is an unwanted artefact, what's the optimal way to remove it knowing a whole html page is returned from the cgi to be embedded in php ?</p>
