OOP-related question
| From: | heinisch at creaction dot de | Date: | Mon, 29 Apr 2002 09:07:16 +0000 |
| Subject: | OOP-related question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-95126@lists.php.net to get a copy of this message | ||
This is done on PHP 3.0.16
Hi folks,
I have a problem with these HTTP_ vars.
I have a mainpage, call it main. There is an include which carries several settings
and other includes like my abstract db-layer class.
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?
Hope someone could help.
TIA Oliver