On Mon, 29 Apr 2002 [EMAIL PROTECTED] wrote: > I include this in my class-function, which works fine for the most > variables but $SERVER_ADDR It seems that I cannot get these variable in > the function of my class so I have to pass them as argument to the > function. I have made an init() function where I pass these vars inside > the object But I donīt like to do this, vars like $SERVER_ADDR or *_NAME > should be available inside the objects-functions. Is this behaviour > normal, or are there any workarounds for it?
function cheeseTaster() { global $SERVER_ADDR; } miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php