okay,
my script picks out the subdomain of the given URL, for example: forums.whatever.com would tell the script that forums is the subdomain...
if you then logged in, it would set the cookie $UGF_$subdomain_loggedin and assign it the value of 1 (amongst other values like userid, email etc.)
now...
i have a seperate function in another class.. that checks to see whether your logged in, based on the $UGF_$subdomain_loggedin cookie... however this is the hard part (for me)
i need to make the variable global so the function in that particular class file can see it, however, i dont know what the variable $subdomain is going to be until the script is already running and has picked out the subdomain, so how can i make it global?
and yeah i've read the bit in the manual about variables and dynamic variable names, still cant figure it out :-( any help would be much appreciated as this script needs finishing asap,
-Dan