|
Posted by d on 04/01/06 22:00
"Stephen Kay" <sk@karma-lab.nospam.com> wrote in message
news:C0503716.5B05A%sk@karma-lab.nospam.com...
> in article IkwWf.44142$wl.11344@text.news.blueyonder.co.uk, d at
> d@example.com wrote on 3/29/06 8:54 AM:
>
>>> 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" :)
>
>
> Well, that was just so......helpful. ;)
>
> OK, look: here's another way of asking the question:
>
> How do I load an html file containing buttons that reference php
> variables,
> and then populate the variables with the correct values, and send it out
> as
> HTML?
include() :)
> I thought that eval() might be part of the solution, but you seem to be
> implying that it is not.
>
> --
> Stephen Kay
> Karma-Lab sk@karma-lab.NOSPAM.com
> ^^^^^^^
>
>
[Back to original message]
|