by ledneb · 12y ago · 0 comments
$a = '{${phpinfo()}}'; $b = [$a]; $c = "$b";
Will execute phpinfo()... which it won't.
$variable = "{${phpinfo()}}";
echo "$variable is fish";
I feel I've missed the point. $variable = "{${phpinfo()}}"; // <- Execution happens here
echo "$variable is fish";
If you pass a "{${phpinfo()}}" via GET, it is not executed. The execution has to happen later - e.g. by eval() or /e.