Re: [PHP] Help: arrays in a class

2004-01-28 Thread jazzman
On Wed, 28 Jan 2004 [EMAIL PROTECTED] wrote: > in php you have to access a member variable (or methods) with: > $this->varname (without the "$") > > e.g.: $this->includedFile = array(); > > hope this helps AHA! I think that's it. The comment someone sent to me (Sorry, i'm awful with names) abo

Re: [PHP] Help: arrays in a class

2004-01-28 Thread John Nichel
John W. Holmes wrote: You have an extra $ sign in your variables names. $this->fName instead of $this->$fName Not sure if that'll solve all your problems, but it's a start. ---John Holmes... Oh, sure. Point out what I missed in my eval. ;) -- By-Tor.com It's all about the Rush http://www.b

Re: [PHP] Help: arrays in a class

2004-01-28 Thread John W. Holmes
From: <[EMAIL PROTECTED]> > class clsfTreeNode > { > > //member variables > var $fName; > var $fData; > var $includedFiles; > > //constructor > function clsfTreeNode( $fileName ) > { > $this->$fName = $fileName; > $this->$fData = file_get_contents($this->$fName); > > $this->ParseFile(); You ha

Re: [PHP] Help: arrays in a class

2004-01-28 Thread John Nichel
[EMAIL PROTECTED] wrote: Here's the problem. In ParseFile I call the function: array_push($this->$includedFiles, $ifName); Here you have it ending in an 's' where $ifName is the name of an include file I found in the code. However, I get an error stating the first argument must be an arra