From: Andy C. <bng...@gm...> - 2009-07-22 16:32:35
|
That appears to only work with HTML ASCII characters. like converting < to < Thanks, 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 On Wed, Jul 22, 2009 at 10:59 AM, junkmail <jun...@2z...> wrote: > Have you tried wrapping the code with htmlentities($codeVar). > > If I had to guess I would say the <?php tags are being parsed by the > browser and hiding the contents > > > Andy Carlson wrote: > > 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 > > > > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > |