|
Posted by brett on 11/12/06 00:56
> I like to think of it as if eval() evaluates its parameter /starting/ in
> PHP mode. So, if your data (from somefile.php) starts with "<?php" you
> need to get out of PHP mode first, then, when eval() sees "<?php" it
> will enter PHP mode and execute the rest.
The PHP is mixed with regular content. The file actually looks like
this:
somefile.php --
Here's the link from LinkGuide:
<?php $content = file_get_contents(TEMPLATEPATH . '/LinkGuide.php');
echo $content; }
?>
Then more text here.
How can I get out of PHP mode when its mixed this way?
Thanks,
Brett
Navigation:
[Reply to this message]
|