Re: [PHP] eval function

2003-08-23 Thread Matthias Wulkow
Hallo Tom, am Samstag, 23. August 2003 um 17:50 hast Du Folgendes gekritzelt: TR> Hi, TR> Saturday, August 23, 2003, 10:01:54 PM, you wrote: MW>> Hallo Tom, MW>> am Samstag, 23. August 2003 um 05:14 hast Du Folgendes gekritzelt: TR>>> This should do it: TR>>> eval('${"content".$databasepagena

Re: [PHP] eval function

2003-08-23 Thread Matthias Wulkow
Hallo Tom, am Samstag, 23. August 2003 um 17:50 hast Du Folgendes gekritzelt: TR> This works for me, what error message do you get? Make sure you use TR> single quotes in the eval otherwise the string will get substituted TR> before eval gets a look at it. TR> $contentarray = array(1=>'testpag

Re: [PHP] eval function

2003-08-23 Thread Matthias Wulkow
Hallo Tom, am Samstag, 23. August 2003 um 05:14 hast Du Folgendes gekritzelt: TR> This should do it: TR> eval('${"content".$databasepagename}[$i]();'); I'm afraid to say it, but it does not :-( Yesterday I was also trying to find some manual pages about eval() which would explain me the synta

Re: [PHP] eval function

2003-08-22 Thread Tom Rogers
Hi, Saturday, August 23, 2003, 8:38:32 AM, you wrote: MW> Hi php-general, MW> I have a question about eval(); MW> I'm having multiple pagenames I store in a database. I also have a lot MW> of functions starting with "content" and then the name of the pages MW> taken from the database. Ex: pagena

Re: [PHP] eval() function

2001-01-14 Thread Rasmus Lerdorf
Yes, eval() is expensive. On Sun, 14 Jan 2001, Adam Powell wrote: > > Hi, in my application I am making a lot of use of the eval() function, > however I was wondering if this is going to cause any extra load. Does it > do anything like load in the PHP engine again or anything? We just added it