Re[2]: [PHP] eval function

2003-08-23 Thread Tom Rogers
Hi, Sunday, August 24, 2003, 2:32:01 AM, you wrote: MW> That's the error I find in the apache-log. On the screen, I get MW> nothing but a white page. By the way I have error_reporting(E_ALL); MW> but I never get errors reported... MW> PHP Fatal error: Call to undefined function: () in /usr/lo

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[2]: [PHP] eval function

2003-08-23 Thread Tom Rogers
Hi, 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".$databasepagename}[$i]();'); MW> I'm afraid to say it, but it does not :-( MW> Yesterday I was also tryin

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

[PHP] eval function

2003-08-22 Thread Matthias Wulkow
Hi php-general, I have a question about eval(); I'm having multiple pagenames I store in a database. I also have a lot of functions starting with "content" and then the name of the pages taken from the database. Ex: pagenames = about,download functions = contentAbout(), contentDownload(). Now I w

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

[PHP] eval() function

2001-01-14 Thread Adam Powell
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 in and the load on our web servers went up... so I was wondering if I shou