Posted by larry on 11/11/06 20:17
brett wrote:
> 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
You want to use eval(), here is the entry on the on-line PHP manual (a
great reference for PHP coding):
http://us3.php.net/eval
Larry
Navigation:
[Reply to this message]
|