embedding php pchart on page
<p>How can I get a pchart in a specific location on my html page? right now when I follow the example and use </p>

<blockquote>
  <p>$myPicture->autoOutput();</p>
</blockquote>

<p>It just overwrites my entire page and just shows the graph.</p>

<h2>edit. 4:32pm</h2>

<p>Looking at the pChart source I found inside pImage.class.php a relevant function</p>

<pre><code>   function stroke()
    {
     if ( $this-&gt;TransparentBackground ) { imagealphablending($this-&gt;Picture,false); imagesavealpha($this-&gt;Picture,true); }

     header('Content-type: image/png');
     imagepng($this-&gt;Picture);
    }
</code></pre>

<p>I tried to change it to this but it seems to return null and I'm getting a bunch of errors about
<strong>Warning: imagettfbbox() [function.imagettfbbox]: Invalid font filename in</strong></p>

<pre><code>   function stroke()
    {   
    ob_start(NULL,4096);
    $this-&gt;Picture;
    header('Content-type: text/html');
    return base64_encode(ob_get_clean();  
    }
</code></pre>
