Posted by puzz on 11/12/06 08:33
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?
Why don't you just:
include( TEMPLATEPATH . '/somefile.php' );
--
http://www.phpwebdir.com
Navigation:
[Reply to this message]
|