I have a file 'config.php' which Is included at the beginning of my program (see below)
Main file runs require 'config.php';
config.php
<?
global $config;
$config['tblist'] = 'pending';
$config['tbdone'] = 'checked';
$config['checkfreq'] = 24;
?>
I then create a new page object
$page = new Page($name,$source);
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?