title: PHP GD and image, seem to alter lots?
body: <p>I want to create a graph using GD in PHP,
  however, lots of things seem to work different ?? in PHP after the</p>
  <pre><code>&lt;?php   
  header ('Content-Type: image/gif');
  </code></pre>
  <p>statement
  I cannot use r_print, it seems that GLOBAL is not working for declaration i functions....</p>
  <p>if i then delclare like</p>
  <pre><code>$x = 1;
  </code></pre>
  <p>and try to use it as</p>
  <pre><code>function err($somevare) {
      GLOBAL $x;
  </code></pre>
  <p>it wont work, and using like</p>
  <pre><code>r_print ($someOther);
  </code></pre>
  <p>will also crash picture as not renderable</p>
  <p>so my question, there seem to be limitations using GD  -- image and rest of PHP, where
  can I understand this better;
  would appreciate some help (using PHP 5.2 .... yes I know its old)</p>