this is slightly hard to explain so i will do my best.
i have a php file called runonce.php used to authenicating a user when they log in for the first time.
it houses these two lines.
require_once '../library/activate_functions.php';
$str = gen_rand_img();
the $str var calles one of the functions housed in activate_functions.php
when i call this php file directly in the browser every thing appears fine.
however, when i call this script through the switch command on the index.php file
it produces the correct results, however,
i get the following error report.
Notice: Use of undefined constant bg_colors - assumed 'bg_colors' in library/activate_functions.php on line 125
i get several of these for two different vars
$bg_colors and $let_space.
both of witch are contained in the require once command.
my question is why does it work when called directly, but not when called through the switch command?
any ideas?
thanks in advance,
chris