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:
What gives?!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? } ?>![]()
![]()




Reply With Quote