RE: [PHP-DB] RE: Storing Code in a db?

From: Date: Sun, 01 Jul 2001 18:34:24 +0000
Subject: RE: [PHP-DB] RE: Storing Code in a db?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-9999@lists.php.net to get a copy of this message
Couldn't you just store the php commands as a txt file and then use a SSI [server side include]? olinux > It would be very convenient to be able to store PHP (or any other server > side code) in a database, then retrieve and execute it. > > I store a lot of website content with embedded HTML commands in a database. > Being able to store PHP code in the database as well would be very > convenient. Lets think about something: if we put some code in a field and then we out the of code from code put in temporal file and then include in our principal code :))) but i have a doubt eval funcion we work with functions printf, echo? i don't think so. > > The only way I can think of doing it would involve a lot of very messy > parsing out of the php commands. I expect that would take way to much > processing time. I don't imagine that would work for entire functions > either. Maybe just individual PHP commands. > > Any ideas???? > > Thanks! Rita > _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com

« previous php.db (#9999) next »