Re: OO website/program doubt

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

 



On 11/2/06, Richard Lynch <ceo@xxxxxxxxx> wrote:

Resources (e.g., MySQL connections) are released at the end of a
script, and will not be resurrectable, at least not in PHP 4 & 5 as I
understand it.


Since this hasn't been said yet...

When working with resources, objects can use the __sleep and __wakeup
magic methods to close and re-create said resources.

http://us2.php.net/manual/en/language.oop.magic-functions.php

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