Calling a .php file
<p>I am what you call a developer with basic PHP scriptings, i have not yet developed complicated scripting so please bear with me.</p>

<p>I am working with a Pie Chart. This php script i found in the net creates a PNG File once it is called. </p>

<p>Example if you accessed it directly like .. </p>

<blockquote>
  <p>www.url.com/generate.php</p>
</blockquote>

<p>This will create a generate.png Image of the Pie Chart</p>

<p>I want to pass values in to as to feed the SP to be used.</p>

<p>Example i like to use SP_contacts i would pass it like </p>

<blockquote>
  <p>www.url.com/generate.php?foo='SP_contacts'</p>
</blockquote>

<p>it will then call the SP then after the query it will generate the Image.</p>

<p>then I would like to call the generated image and <strong>ECHO</strong> it in the <strong>HTML page</strong>.</p>

<p>i will have my <strong>Index.php</strong> page to handle the <strong>ECHO</strong>, now how will I call this <strong>generate.php</strong> inside my <strong>Index.php</strong></p>

<p>I am not sure how to make it work as I havent read any PHP Books or were trained to use PHP. I am just a go develop and learn guy and hopes that the internet is there for me. haha. Thanks in advance.</p>
