guys need a bit of help here..
I'm trying to create a class where in that class i'm using some of the php's global variables. I don't understand why the variables doesn't contain any value if used inside a class. Here is a sample:
testclass.php contains:
Then test.php contains:
This should display "test:MyServerName" but i only get "test:". But when I try to place the script
outside the class or place it in the test.php, it works fine.
Can anybody tell me why is it so? Or did I miss something? Is there something wrong with the code?
Thanks.