[Resolved] WTF? Global problem...
I'm doing this sort of thing in numerous scripts, however, in ONE FILE, it's not working.
Here's a condensed version of the code:
Code:
<?php
$CONFIG['absolute_path'] = '/home/vbshelf/public_html/reality/news/';
//config.php simply loads some variables from a database
//into the $CONFIG array:
include $CONFIG['absolute_path'] . 'config.php';
echo $CONFIG['numitems'] . '<br>'; //WORKS!
function _news($cat = '') {
global $CONFIG;
echo $CONFIG['numitems'] . '<br>'; //DOESN'T WORK?
}
?>
What gives?! :confused: :mad: