RE: [PHP] a DOM object in $_SESSION ?
Edward Kay wrote: >> Does anyone know if this works? I've been trying out a few things, >> and it doesn't seem to work. I.e. the object is there, but the >> contents aren't. > > I don't think it is possible due to the way PHP handles the XML data > [1]. > > This is from 2002 / PHP 4.3 but a comment [2] in the PHP manual for > SimpleXML seems to suggest it is still the case. You could probably > get around it by using a string representation in the session > variable. > > [1] http://bugs.php.net/bug.php?id=20899&edit=1 Thanks Edward - [1] makes perfect sense. I think I'll just store on it disk instead and reload when necessary. /Per -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] a DOM object in $_SESSION ?
> Does anyone know if this works? I've been trying out a few things, and > it doesn't seem to work. I.e. the object is there, but the contents > aren't. I don't think it is possible due to the way PHP handles the XML data [1]. This is from 2002 / PHP 4.3 but a comment [2] in the PHP manual for SimpleXML seems to suggest it is still the case. You could probably get around it by using a string representation in the session variable. [1] http://bugs.php.net/bug.php?id=20899&edit=1 [2] http://uk2.php.net/manual/en/ref.simplexml.php#74192 Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] a DOM object in $_SESSION ?
Does anyone know if this works? I've been trying out a few things, and it doesn't seem to work. I.e. the object is there, but the contents aren't. thanks Per Jessen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php