Re: serialize an object

From: Date: Thu, 19 Apr 2007 22:04:49 +0000
Subject: Re: serialize an object
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-253294@lists.php.net to get a copy of this message
I'm wondering if the OP is failing to re-define the baseclass when loading in the saved object... But, yes, get rid of the by-hand serializing first, as PHP will serialize it for you. On Thu, April 19, 2007 7:40 am, Zoltán Németh wrote: > as far as I know serialize() saves all the properties of the object... > > and I think you can store objects in session without serializing it > since PHP serializes-unserializes it for you automatically - or not? > > greets > Zoltán Németh > > 2007. 04. 19, csütörtök keltezéssel 13.17-kor Tobias Wurst ezt > írta: >> hi, >> i use serialize() to save my object in $_SESSION. >> But i have one Problem: >> the member-variables from the baseclass are not saved.. :( >> How can i fix this? >> >> thanks in advance >> > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?

« previous php.general (#253294) next »