Re: [PHP4BETA] What goes here? Code Help needed

From: Date: Mon, 14 Feb 2000 17:02:46 +0000
Subject: Re: [PHP4BETA] What goes here? Code Help needed
References: 1 2  Groups: php.version4 
Request: Send a blank email to php-version4+get-10256@lists.php.net to get a copy of this message
Teodor Cimpoesu wrote: > [snip] > > $finder = "%%" . $arg_list[$i] . "%%"; > > SOMEWHERE IN HERE $repped should be equal to the "contents" of the > > variable > > that is named the same as the name of the element in $arg_list[$i] > > through each loop > > quick-guess] > try $repped = $GLOBALS[$arg_list[$i]]; > > > $templine = ereg_replace($finder, $repped, $templine); > [snip] Nope still wont give me the contents of the HP_ variables even if I change the passing of the variable to the function to \$HP_info and so on and change the string to %%$HP_info%% in the template > Also have a look at FastTemplates class, > (sow it somewhere at phpbuiler.com) FastTemplates broke when I moved to php4 and I didnt need the swiss army knife functionality of it anyways. Just a very simple replace so I decide to write a quick and dirty function to handle it and Im now going on 4 days of banging my head against the wall. Thanks for the guess though Boz

« previous php.version4 (#10256) next »