Re: [PHP] Persistent Objects

2007-07-18 Thread Wesley Acheson
On 7/18/07, Richard Lynch [EMAIL PROTECTED] wrote: On Sun, July 15, 2007 2:25 pm, Wesley Acheson wrote: 1. Does the answer below mean no global persistant objects? (Application scope) I guess that it does. Pretty much, yes. PHP is more Unix-like in quickly spitting out an answer, rather than

Re: [PHP] Persistent Objects

2007-07-17 Thread Richard Lynch
On Sun, July 15, 2007 2:25 pm, Wesley Acheson wrote: 1. Does the answer below mean no global persistant objects? (Application scope) I guess that it does. Pretty much, yes. PHP is more Unix-like in quickly spitting out an answer, rather than MS-like in having some monolithic answer object

[PHP] Persistent Objects

2007-07-15 Thread Wesley Acheson
Hi, At work we use Java so one thing is annoying me. Is there really no way to create a persistent object in PHP? As far as my understanding goes each object will be recreated on each and every request. The reason I was asking is I wanted to create a form object that would be used as follows.

Re: [PHP] Persistent Objects

2007-07-15 Thread Nathan Nobbe
Wesley, I too have come from a Java [ and c++ ] background to PHP. fear not; you can create persistent objects PHP. although there is no JVM to handle this automatically object can be persisted by storing their references. the most natural place to store them is in the session. and if i

Re: [PHP] Persistent Objects

2007-07-15 Thread Wesley Acheson
Thanks Nathan, I guess that your answer raises a couple of questions. 1. Does the answer below mean no global persistant objects? (Application scope) I guess that it does. 2. Is this an un-PHP way of doing things? 3. Is what I'm trying to do even worthwhile or should I just create each form

Re: [PHP] Persistent Objects

2007-07-15 Thread Nathan Nobbe
Wesley, 1. Does the answer below mean no global persistant objects? (Application scope) I guess that it does. No. Files, a database or memory (memcached) can be used to facilitate application variables. However, I've been told this is taboo in PHP. Coming from Java I'm sure youve heard as I

Re: [PHP] Persistent Objects

2007-07-15 Thread Sancar Saran
On Sunday 15 July 2007 19:58:09 Wesley Acheson wrote: Hi, At work we use Java so one thing is annoying me. Is there really no way to create a persistent object in PHP? As far as my understanding goes each object will be recreated on each and every request. The reason I was asking is I