Re: Saving

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, August 6, 2007 2:22 pm, Dan wrote:
> Has anyone had to save the insance of a class which had a properties
> which
> were pointers?  I have a really simple class.  Just a few functions
> and a
> couple properties & variables.  But now I need to be able to save the
> class
> to a file.  Of course when you re-open the file the pointers will be
> useless.

PHP has no pointers.

So what are you really talking about here?

If all you mean is references to other objects, then it is up to you
to ensure that the Class file is loaded so that the objects can be
defined properly, before you go using them.

There is an __autoload mechanism for this in PHP:
http://php.net/__autoload

-- 
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?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux