Re: [PHP] OO website/program doubt

2006-11-02 Thread Eric Butera
On 11/2/06, Richard Lynch <[EMAIL PROTECTED]> 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 __sle

RE: [PHP] OO website/program doubt

2006-11-02 Thread Richard Lynch
PM > To: Meghdad Azriel > Cc: php-general@lists.php.net > Subject: Re: [PHP] OO website/program doubt > > > On Wed, November 1, 2006 2:50 pm, Meghdad Azriel wrote: >> The objects in an OO website/program is always alive in the session, >> or they >> die at

Re: [PHP] OO website/program doubt

2006-11-01 Thread Chris
bruce wrote: yo rich (or others)... does php provide the ability to store objects in a session var You just need to make sure you load the class before the session: include('user_class.php'); ... session_start(); otherwise you get "incomplete class" errors. -- Postgresql & php tutorial

Re: [PHP] OO website/program doubt

2006-11-01 Thread Kevin Waterson
This one time, at band camp, "bruce" <[EMAIL PROTECTED]> wrote: > does php provide the ability to store objects in a session var yes http://phpro.org/tutorials/Introduction-to-PHP-Sessions.html#8 Kevin -- "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a

Re: [PHP] OO website/program doubt

2006-11-01 Thread Ed Lazor
- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 01, 2006 1:16 PM To: Meghdad Azriel Cc: php-general@lists.php.net Subject: Re: [PHP] OO website/program doubt On Wed, November 1, 2006 2:50 pm, Meghdad Azriel wrote: The objects in an OO website/program is always alive in

RE: [PHP] OO website/program doubt

2006-11-01 Thread bruce
yo rich (or others)... does php provide the ability to store objects in a session var -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 01, 2006 1:16 PM To: Meghdad Azriel Cc: php-general@lists.php.net Subject: Re: [PHP] OO website/program

Re: [PHP] OO website/program doubt

2006-11-01 Thread Richard Lynch
On Wed, November 1, 2006 2:50 pm, Meghdad Azriel wrote: > The objects in an OO website/program is always alive in the session, > or they > die at the end of the execution of each page? They die and are resurrected like zombies on the next page. The Resurrection is slightly more complicated than

Re: [PHP] OO website/program doubt

2006-11-01 Thread Ed Lazor
No variable is part of session data, unless you specifically add it yourself. Sorry, can't answer to AJAX, haven't had time to play with it. On Nov 1, 2006, at 12:50 PM, Meghdad Azriel wrote: Hello, The objects in an OO website/program is always alive in the session, or they die at th