From: matt d. <mm_...@ya...> - 2009-07-22 16:47:48
|
How are you using eval? echo eval($code)? I would say code in a database is never a great idea unless you enjoy mysteries. ________________________________ From: Andy Carlson <bng...@gm...> To: Chicago PHP User Group <chi...@li...> Sent: Wednesday, July 22, 2009 10:52:03 AM Subject: [chiPHPug-discuss] PHP Code in a string Here's the situation. I'm designing a database based page generation system for my website. That is, HTML and possibly PHP code is stored in a MySQL table as raw text. A query will pull the text out of the table and render it as HTML and PHP. It renders the HTML, but it won't render the PHP Code (it appears in my source code when I "view source" in my browser). I have tried the "eval()" command, but that doesn't seem to work. Any thoughts? Thanks much, Andy Carlson Carlson Technology --------------------------------------------------- "Man's conquest of Nature turns out, in the moment of its consummation, to be Nature's conquest of Man." -- C.S. Lewis --------------------------------------------------- "The ubiquity of the Internet is more important than the technology of the Internet" -- Jeff Bezos ------------------------------------------------------------------------------ _______________________________________________ chiPHPug-discuss mailing list chi...@li... https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss |