title: php global config and settings in application
body: <p>I have a file 'config.php' which Is included at the beginning of my program (see below)
  Main file runs <code>require 'config.php';</code></p>
  
  <p>config.php</p>
  
  <pre><code>&lt;?
  global $config;
  $config['tblist'] = 'pending'; 
  $config['tbdone'] = 'checked';
  $config['checkfreq'] = 24;
  ?&gt;
  </code></pre>
  
  <p>I then create a new page object</p>
  
  <pre><code>$page = new Page($name,$source);
  </code></pre>
  
  <p>One of the functions in that page object I want to be able to grab stuff from the config but it doesn't seem to be able to reference to $config. Have I put global $config; in the right place?</p>