Re: Executing scripts from a table

From: Date: Sat, 03 Feb 2007 00:59:16 +0000
Subject: Re: Executing scripts from a table
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-248216@lists.php.net to get a copy of this message
On Fri, February 2, 2007 11:32 am, Ken Kixmoeller -- reply to ken@kixmoeller.com wrote: > For security and efficiency, I am trying to store PHP scripts in > MySQL tables. Only problem: I can't get them to execute. Errrr. Putting PHP source into MySQL is the WRONG way to go for security and efficiency... So, right there, you're in the wrong tree. But the function you THINK you want is 'eval' http://php.net/eval Rule Of Thumb: If 'eval' is the answer, you are almost certainly asking the wrong question. :-) -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?

« previous php.general (#248216) next »