Re: Object Class problems

From: Date: Wed, 05 Jul 2000 11:56:56 +0000
Subject: Re: Object Class problems
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-880@lists.php.net to get a copy of this message
Glenda Anaya wrote: > > Hi, I am working in an Object oriented project with > php3 and Mysql server and I have some problem when ii > want to use the same object class from one page to > another, How can I implement this? OK. You got to [on page 1] a) save object's current state ($str = serialize ($obj)) in database or file [on page 2] b) include class definition (to restore members) c) load object's state ($obj2 = unserialize ($str)) More information you can find in Luis Argerich's column on PHP Builder: OOP in PHP: The way to large PHP projects -- Stas Trefilov Moscow Russia

« previous php.windows (#880) next »