You are here: Re: Executing PHP in a variable? « PHP Programming Language « IT news, forums, messages
Re: Executing PHP in a variable?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация