Re: [PHP] PHPEclipse?

2004-07-13 Thread David Goodlad
Hi Dan I am the one building all the phpeclipse cvs releases. The latest zip file was corrupted (July 11, 2004), but the previous one works. Or, wait until tomorrow early morning when I will post a working CVS build for this week. I am using it and building it on Eclipse 3.0 in linux/gtk, but b

Re: [PHP] Re: Saving variables in a session in a destructor

2004-06-30 Thread David Goodlad
Ahh, guess I didn't look hard enough! Thanks! Dave On Wed, 30 Jun 2004 10:10:29 +0200, Red Wingate <[EMAIL PROTECTED]> wrote: > > Maybe you check out the internals archives as an discussion about this topic > was held 1-2 days ago. > > > > Hi all > > > > Using PHP5, I am trying to save some p

[PHP] Saving variables in a session in a destructor

2004-06-29 Thread David Goodlad
Hi all Using PHP5, I am trying to save some properties of an object when it is destroyed in its destructor, __destruct(). However, I have found that the session variable is NOT stored unless I explicitly destroy the object using unset(). If I leave php to finish executing the script and automati

Re: [PHP] Construction

2004-06-27 Thread David Goodlad
As far as I know, this is fairly common in most programming languages (but I just woke up so don't take my word on it!). It allows you a lot greater control over the construction of your class, since you can force the child class to override what the parent class's default member variable values a

Re: [PHP] a stupid question

2004-06-24 Thread David Goodlad
Perhaps using: $ret = aFunction(); var_dump($ret); Then you'll see if aFunction() is returning anything. Dave On Thu, 24 Jun 2004 16:48:18 -0500, Matt Matijevich <[EMAIL PROTECTED]> wrote: > > [snip] > echo "Some text".aFunction()."some more text"; > [/snip] > > Have you checked to see if aFu

Re: [PHP] static __get function

2004-04-24 Thread David Goodlad
tion is not public anyway, as it should no be called directly. And to my knowledge self:: references a class, not an object. You should use $this-> instead. David Goodlad static objectwrote: Hi all... I'm trying to build a simple configureation class (using the singleton pattern). Usi

[PHP] static __get function

2004-04-23 Thread David Goodlad
Hi all... I'm trying to build a simple configureation class (using the singleton pattern). Using PHP5, I want to use the __get and __set methods to access configuration settings for my site. However, they don't work :P Here's my class definition: class Configuration { static private