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" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> 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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
S.Murali Krishna
[EMAIL PROTECTED]
=====================================
We grow slow trying to be great
- E. Stanley Jones
-------------------------------------
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]