开发者

php eval function in iframe

开发者 https://www.devze.com 2022-12-23 13:57 出处:网络
i got an iframe in an echo: <iframe width=\'100%\' heig开发者_开发百科ht=\'100\'>$content</iframe>

i got an iframe in an echo:

<iframe width='100%' heig开发者_开发百科ht='100'>$content</iframe>
$content = eval ( "\$bugs = \"" . gettemplate ('bugs') . "\";" );

but it doesnt work.

how can i use the eval function from php to show the page in an iframe?

thnx!


Refer the following code

<?php
$string = 'cup';
$name = 'coffee';
$str = 'This is a $string with my $name in it.';
echo $str. "\n";
eval("\$str = \"$str\";");
echo $str. "\n";
?>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号