Hi. I'm fairly new to php, and I'm having a scoping problem with a couple variables. I need to have a couple of string variables available to all functions without passing them in as arguments. I read the post located in this forum about global variables (http://www.phpbuilder.com/board/showthread.php?s=&threadid=10229258), but still it seems that I can't alter these variables inside a function so that other functions can see the change. I'm using SAX to parse an XML document and am using the startElement, endElement, characterData functions to try to update the global variables. I was wondering if there was anything special that might be causing this. At the top of these functions I do the 'global $mystring;' line. I was under the impression that this would make me able to alter the value of the variable for the whole program if I did this. Does anyone know what I might be doing wrong? Or if there's another more simple way of doing this, please let me know. Thanks. :-)