Re: Can PHP execute a string containing PHP code?

[email protected] ("Laura Thomson") Fri, 9 May 2008 14:03:03 -0400
Newsgroups php.evangelism
Message-ID <[email protected]>
------=_Part_4139_30518308.1210356183889
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

http://php.net/eval

It's not typical PHP idiom to use it though (unlike in JavaScript, say).

Cheers

Laura

On Fri, May 9, 2008 at 1:41 PM, jim <[email protected]> wrote:

> Hi,
>
> Can anyone tell me how to use PHP to execute a string that contains PHP
> code
> which contains references to objects and variables such that when the
> string
> (code) is executed the objects and/or variables are updated (from the
> perspective of the calling program)?
>
> I am in the process of determining if PHP is the appropriate scripting
> language for an application that I am writing.
>
> Thanks in advance.
> Jim
>
>
>

------=_Part_4139_30518308.1210356183889
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<a href="http://php.net/eval">http://php.net/eval</a><br><br>It&#39;s not typical PHP idiom to use it though (unlike in JavaScript, say).<br><br>Cheers<br><br>Laura<br><br><div class="gmail_quote">On Fri, May 9, 2008 at 1:41 PM, jim &lt;<a href="mailto:[email protected]">[email protected]</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
Can anyone tell me how to use PHP to execute a string that contains PHP code<br>
which contains references to objects and variables such that when the string<br>
(code) is executed the objects and/or variables are updated (from the<br>
perspective of the calling program)?<br>
<br>
I am in the process of determining if PHP is the appropriate scripting<br>
language for an application that I am writing.<br>
<br>
Thanks in advance.<br>
<font color="#888888">Jim<br>
<br>
<br>
</font></blockquote></div><br>

------=_Part_4139_30518308.1210356183889--