[PHP] eval challenge

2003-03-04 Thread neko
- define a string that has a function call in it (that returns a string) that at the time of declaration is not in scope, eg $str = this is the name : \$node-getName(); // $node is _not_ defined currently, so we can't escape out then, later on in the code, this string will be passed to a

Re: [PHP] eval challenge

2003-03-04 Thread Dan Hardiker
- define a string that has a function call in it (that returns a string) that at the time of declaration is not in scope, eg $str = this is the name : \$node-getName(); // $node is _not_ defined currently, so we can't escape out Ya have 2 options really (from my perspective): 1. Place in

Re: [PHP] eval challenge

2003-03-04 Thread neko
Thanks for your time, Dan. Currently, I'm using defined tags for replacing info from my CMS, eg: $str = ofa-core:siteMapLink/ Then I have a function that has all the objects in scope, and can perform the necessary replacements. I am prototyping some stuff with smarty, but so far have yet to

Re: [PHP] eval challenge

2003-03-04 Thread Dan Hardiker
Currently, I'm using defined tags for replacing info from my CMS, eg: $str = ofa-core:siteMapLink/ Then I have a function that has all the objects in scope, and can perform the necessary replacements. ok ... what would ofa-core:siteMapLink/ represent? The output of $ofa-core-siteMapLink();?

Re: [PHP] eval challenge

2003-03-04 Thread neko
ok ... what would ofa-core:siteMapLink/ represent? The output of $ofa-core-siteMapLink();? If your using XML throughout - have you looked at XSLT transformations? It's just a symbolic name - the output is created from a few different objects within the CMS, but it was such a commonly used set