is there a way to set variables globally throughout an application?
sure. i usually have a file named config.inc.php which gets included in every page. the file contains only variables and their values. i wrote a script to manage this file: http://xhawk.net/iniread/
-paul http://xhawk.net
Either do what Paul suggests, or use Sessions to register variables. The advantage of sessions, is that every Client that logs to your web site can have (but does not have to) his own variable values!
dolce