How come that I cannot store a varible in the session when I do this
from within another object?
This is my code:
Click here\n");
}
}
}
new MyClass($state);
?>
/watson
--
PHP General M
> This is because $foo is local to the member functions of the class.
> declare global $foo at the start of every function.
Ok thnx... it worked... but how do you then explain this?:
***
foo = $bar;
}
function getFoo() {
> Hmmm, it seems that "obj" is not saved to the session file.
>
>
> I don't thik that & before new is needed.
This is weird :) It worked when I removed the & (thought that I tried that
;). Now I just can't remember why I put it there in the first place. I hope
it wasn't importent ... well I w
Hi all,
After a bit of testing, I've noticed, that the $HTTP_SESSION_VARS array
isn't as global as the manual makes it. The following piece of code should
produce 2 blank lines and a "click here" link the first time it's loaded.
When you click on the link, I would expect two lines saying "som
4 matches
Mail list logo