:-) cool thank you! is any "$_"-variable superglobal? $_REQUEST, $_POST, ...?
cheers, jazper "Curt Zirzow" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > * Thus wrote Juerg Zgraggen ([EMAIL PROTECTED]): > > Probably i got the problem... but i don't know how to solve it!!! > > > > i include one of my class. > > in the constructor of this class i did a global... > > global $_SESSION; > > > > as soon as i delete that line. my script works perfect... > > > > is this not allowed anymore... to access $_SESSION in a constructor?? > > $_SESSION is a superglobal meaning you don't need to and shouldn't > (as you found out the hard way :) global it. You can access it > anytime: > > class foo { > function foo { > $this->var = $_SESSION['var']; > } > } > > Curt > -- > "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php