Re: [PHP] Recursive Interpolation

2004-10-05 Thread Chuck Wolber
ne." Looks like there's some traction for something like this. That's a good first step :) -Chuck On Tue, 5 Oct 2004, l0t3k wrote: > if you check the internals archive, i think Sara said she had an > interpolator on her plate... > > > "Chuck Wolber" &

RE: [PHP] Recursive Interpolation

2004-10-05 Thread Chuck Wolber
On Mon, 4 Oct 2004, Michael Sims wrote: > Chuck Wolber wrote: > > The method I've come up with in the meantime, I believe is much more > > effective than heredocs, but still an ugly hack: > > > > function interpolate ($text, $msg_variable) { > > $msg

Re: [PHP] Recursive Interpolation

2004-10-04 Thread Chuck Wolber
On Mon, 4 Oct 2004, Chuck Wolber wrote: > Database *FIELD* with text data in it. The text data contains sentences > interspersed with $foo['bar'] array variables. The idea is that when one > selects this field, PHP will interpolate $foo['bar'] with the currently

Re: [PHP] something wrong with $_SERVER var

2004-10-04 Thread Chuck Wolber
On Tue, 5 Oct 2004, Merlin wrote: > I am experiencing a strange behaviour with $_SERVER vars. > Somehow the var: $_SERVER[SERVER_PORT] seems to be 443 even if > it is 80. I had following statement inside my app: > > if ($_SERVER[SERVER_PORT] == '443' AND !$SSL){ > header("Location:http://"

[PHP] Recursive Interpolation

2004-10-04 Thread Chuck Wolber
Greetings, I've seen a few posts from the middle of last year discussing the problem of recursive interpolation: http://marc.theaimsgroup.com/?l=php-general&m=105543152906744&w=2 http://marc.theaimsgroup.com/?l=php-general&m=105542523331255&w=2 It seems there's a HEREDOC method of hacking thro