在变量中执行PHP? [英] Executing PHP in a variable?
本文介绍了在变量中执行PHP?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在做一个包含的文件
<?php $ content = file_get_contents(TEMPLATEPATH。''/ somefile.php'');
echo $ content; ?>
在somefile.php中,有PHP代码。如何执行代码一次
$内容如上所示?
谢谢,
Brett
解决方案
content = file_get_contents(TEMPLATEPATH。''/ somefile.php'');
echo
内容; ?>
在somefile.php中,有PHP代码。如何执行代码
内容如上所示?
谢谢,
布雷特
I''m doing a file include as
<?php $content = file_get_contents(TEMPLATEPATH . ''/somefile.php'');
echo $content; ?>
In somefile.php, there is PHP code. How can I execute the code once
$content is displayed as above?
Thanks,
Brett
解决方案
content = file_get_contents(TEMPLATEPATH . ''/somefile.php'');
echo
content; ?>
In somefile.php, there is PHP code. How can I execute the code once
content is displayed as above?
Thanks,
Brett
这篇关于在变量中执行PHP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文