outputting image content type using two functions
<p>I'm using an image outside of my docroot and want to display that image inside of a function.</p>

<p>How do I correctly do this?</p>

<p>Here is what I have so far: (Both functions are in the same file)</p>

<pre><code>function page(){
  echo'
    test&lt;br /&gt;
    '.output().'
  ';
}

function output(){
    header("Content-Type: image/gif");
    readfile( '../../../dirOutsideDocRoot/test.gif' );
}
</code></pre>

<p>This currently will output the image but I am not able to see the "test" above it. Is it possible to get the image into the page function using <code>header</code>?</p>
