magic functions
| From: | mike cullerton | Date: | Sun, 08 Jul 2001 19:03:50 +0000 |
| Subject: | magic functions | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-56794@lists.php.net to get a copy of this message | ||
hey folks, hope the day is treating you well.
i believe i have solved my chasing the tail problem with registering an
object as a session variable. now, i'm having trouble with my database
connection.
in the object i am registering, one of its variables is a pear db object.
the first connection to the page works, any subsequent connection gets the
following error
> Warning: Supplied argument is not a valid MySQL-Link resource in
> DB/mysql.php
so, i am wondering how to use __sleep and __wake. there aren't any examples
on php.net about this. it mentions something about returning an array of
variables to serialize. should i include the db object in this array?
anyone have a simple example to start from?
any help appreciated, thanks,
mike
-- mike cullerton