Re: [PHP] Storing serialized classes in database

2001-07-09 Thread Christopher Heschong
When you serialize() an object in PHP, it only stores the properties, not the methods. This way you can change any of the methods in your class definitions, or add new properties, and when the data is unserialize()d, it will fit into the new class definition. The latest (development) version

Re: [PHP] Storing serialized classes in database

2001-07-09 Thread infoz
The way we do commonly this in Dreamtime is to have a container object (essentially an associative array with a wrapper (http://www.phptemplates.org/old/classref/dot_Container.html) that allows you to get/set the profile data elements by name. That whole object is then serialized as the (single)

RE: [PHP] Storing serialized classes in database

2001-07-09 Thread scott [gts]
you could use a simple assoc. array for all the user's information, and store that serialized in the database rather than serialize the entire object. that way, you'd have to store less information in the DB, and wouldnt have to worry about breaking any of your code in the future (or the object b