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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to