Re: A function that executes php code in a string?
| From: | S.Murali Krishna | Date: | Thu, 31 Jan 2002 10:00:47 +0000 |
| Subject: | Re: A function that executes php code in a string? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-82899@lists.php.net to get a copy of this message | ||
You can create function on the fly using
'create_function' function
and you can call the same with 'call_user_func' function
$k = create_function('args','code')
call_user_func($k) OR eval("$k()")
On Wed, 30 Jan 2002, Mike Maltese wrote:
> eval()?
>
> ----- Original Message -----
> From: "Leif K-Brooks" <eurleif@buyer-brokerage.com>
> To: <php-general@lists.php.net>
> Sent: Wednesday, January 30, 2002 10:25 PM
> Subject: [PHP] A function that executes php code in a string?
>
>
> > I want to execute code in a mysql datrabase, but is this possible? I want
> > it to run exactly as if I had tyyped it in to the php file.
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
S.Murali Krishna
smk_bk@yahoo.com
=====================================
We grow slow trying to be great
- E. Stanley Jones
-------------------------------------