I\'m having trouble with global variables in php. I have a $screen var set in one file, which requires another file that calls an initSession() def
$screen
initSession()
The global scope spans included and required files, you don't need to use the global keyword unless using the variable from within a function. You could try using the $GLOBALS array instead.