[SR-Users] how to evaluate a string value?

Juha Heinanen jh at tutpro.com
Sat Jun 26 09:02:27 CEST 2010


http_query function takes an url as the first argument, for example,

http_query("http://localhost/test.php?uri=$(ru{s.escape.param})",
	"$var(result)");

what i would like to do is this:

http_query("$sel(cfg_get.local.http_query_url)", "$var(result)");

that is, instead of giving url argument as a fixed string, i would like
to take it from cfg variable.

the problem is that if i give local.http_query_url string value
"http://localhost/test.php?uri=$(ru{s.escape.param})", pseudo variables
and transformations in the value are not evaluated.

is there any current means to get them evaluated?  something like

http_query(eval("$sel(cfg_get.local.http_query_url)"), "$var(result)");

????

-- juha



More information about the sr-users mailing list