You are here: Re: Is my understanding of eval incorrect? « PHP Programming Language « IT news, forums, messages
Re: Is my understanding of eval incorrect?

Posted by d on 03/29/06 16:54

"Stephen Kay" <sk@karma-lab.nospam.com> wrote in message
news:C04F9F58.5AF7A%sk@karma-lab.nospam.com...
>I thought from my brief reading about eval() that you could take an html
> file that had some php variables in it, such as placeholders for links,
> and
> then turn it into an html version with the correct links, by doing
> something
> like:
>
> $html = implode('', file('http://www.mysite.com/transbar.html'));
>
> // populate variable names with links
>
> eval ("\$html = \"$html\";");
> echo $html;
>
>
> ...but I get parse errors from eval. Obviously it's not that simple...?

"If eval is the answer, you're asking the wrong question" :)

> --
> Stephen Kay
> Karma-Lab sk@karma-lab.NOSPAM.com
> ^^^^^^^
>
>

 

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

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