Re: [PHP] how to include() a string

2001-04-30 Thread Zeev Suraski
At 18:13 29/4/2001, Luca wrote: > > >If you can develop your application without using eval() you're > > >better off as it is very slow. > >So, can think of faster solutions? This only applies to using eval() as a 'mainstream' programming technique (e.g., instead of using other language features

Re: [PHP] how to include() a string

2001-04-29 Thread Andi Gutmans
At 06:42 PM 4/29/2001 +0200, Luca wrote: >Andi Gutmans <[EMAIL PROTECTED]> wrote: > > > Sometimes eval() is the right solution. > > I can't think of a solution if I don't know *exactly* what you are > > trying to do and why you need eval(). > >Yes, I'm sorry, I should have explained myself better.

Re: [PHP] how to include() a string

2001-04-29 Thread Andi Gutmans
At 05:13 PM 4/29/2001 +0200, Luca wrote: >Luca <[EMAIL PROTECTED]> wrote: > > > Unfortunately eval() is not what I need. > >I was wrong. From a user contributed note in the online manual: > >"To include HTML in the string passed to eval, precede it with a PHP >closing tag. Once you have finished y

Re: [PHP] how to include() a string

2001-04-29 Thread Andi Gutmans
At 04:57 PM 4/29/2001 +0200, Luca wrote: >Andi Gutmans <[EMAIL PROTECTED]> wrote: > > > Do you mean eval()? It evaluates code which is a string, for example: > > eval ('print(2);'); > > > > If you can develop your application without using eval() you're better off > > as it is very slow. > >Unfort

Re: [PHP] how to include() a string

2001-04-29 Thread ~~~i LeoNid ~~
On 29 Apr 2001 06:11:23 -0700 impersonator of [EMAIL PROTECTED] (Andi Gutmans) planted &I saw in php.general: >Do you mean eval()? It evaluates code which is a string, for example: >eval ('print(2);'); > >If you can develop your application without using eval() you're better off >as it is very s

Re: [PHP] how to include() a string

2001-04-29 Thread Andi Gutmans
Do you mean eval()? It evaluates code which is a string, for example: eval ('print(2);'); If you can develop your application without using eval() you're better off as it is very slow. Andi At 11:29 AM 4/29/2001 +, ~~~i LeoNid ~~ wrote: >require(?) > >-- >PHP General Mailing List (http://w

Re: [PHP] how to include() a string

2001-04-29 Thread ~~~i LeoNid ~~
require(?) -- 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]