NYCPHP Meetup

[nycphp-talk] Disappearing data or I've gone mad

Jeremy Hise jhise at nextsource.com
Wed Feb 12 13:57:06 EST 2003


*hangs head in shame* I know....I know...can say it was a seperate group of developers...

On Wed, 12 Feb 2003 13:24:59 -0500
Brian <brian at preston-campbell.com> wrote:

> OT -- dude, Mozilla 1.2 == Netscape 6 or higher.
> 
> http://www.nextsource.com/BrowserNotSupported.htm
> 
> Not sure if you have any influence over the company's site, but I hope it is 
> worth looking into.
> 
> Brian
> 
> 
> On Wednesday 12 February 2003 12:58 pm, Jeremy Hise wrote:
> > Hi:
> >
> > I have a very strange situation that may be difficult for me to
> > convey...but either PHP is having problems, or I'm just a jackass.
> >
> > Here is the weirdo code with some of my attempt to debug. $this->data
> > contains an array of "keys" that need to be replaced with values. This is
> > kind of a ghetto template parser. Everything is fine until I get inside the
> > for loop (which used to be a foreach...but I'm trying everything. Inside
> > that loop, I cannot get $this->data[$key] to print out anything!
> >
> > I'm just basically looking for someone to see if I'm overlooking something.
> >
> > Thanks a billion!
> >
> > hise
> >
> >      function parse() {
> >         // Get an array of items such as 'first_name', 'last_name', etc
> >         $kws = $this->get_tags();
> >
> >         // If we do have an array of keywords
> >         if(is_array($kws)) {
> >             // For each keyword
> >             foreach($kws as $kw) {
> >                 // Get the value from this object's data hasa
> >                 $value = $this->data["$kw"];  // <-- this has no data in it
> > inside this loop // Replace the smac tagged keyword with the value
> >                 $this->body = ereg_replace("<smac>".$kw."</smac>", $value,
> > $this->body); }
> >         }
> >         return($this->body);
> >     }
> 
> 
> 
> 
> --- Unsubscribe at http://nyphp.org/list/ ---
> 


-- 

-+----------------------+
 | jhise at nextsource.com |
 | developer            |
 | nextSource, Inc.     |
 | x334                 |
 +----------------------+



More information about the talk mailing list