is eval() fast or slow?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
cybaf
Forum Commoner
Posts: 89
Joined: Tue Oct 01, 2002 5:28 am
Location: Gothenburg Sweden

is eval() fast or slow?

Post by cybaf »

Hi!

I'm currently working on a CMS where I have some php-code inside a mysqldatabase.

I'm getting the php from the database and then do an eval() on the result. It works fine.

My question is if this set up would be slow since eval would have to do most of the work? especially when the phpcode inside the db gets big?

//cybaf
User avatar
DuFF
Forum Contributor
Posts: 495
Joined: Tue Jun 24, 2003 7:49 pm
Location: USA

Post by DuFF »

Yes, there was a thread a couple days ago about eval() and that looping it got really slow. He was looking for a way to get around it but no one really knew how :?
User avatar
cybaf
Forum Commoner
Posts: 89
Joined: Tue Oct 01, 2002 5:28 am
Location: Gothenburg Sweden

Post by cybaf »

allright... hmm... well I guess there's not much to do then. just have to stick with it...
Post Reply