Hey guys - I've been mulling this one over for a few days now - and still haven't come up with anything intelligent to sort it... I'm building a site where you can edit the content on the fly - basically allowing you to write code and add pages without touching a telnet or ftp session etc etc etc... So I end up with chunks of text stored in my database - which I then pull out and (currently) do the following with: <pull text out of database to $content> echo $content; This works real nice when the text is plain HTML - makes setting up a site nice-n-easy.. however, I want certain people to be able to put php code in their snippets using <? and ?> as you would when editing a normal php file. This is where my $echo falls over - none of the php code is executed (as you would expect). What I really want to be able to do is: include($content); I haven't been able to find any ways to do this though - eval() looks for just php code and include() and require() look for filenames. I really don't want to store my snippets as files - but I guess I may have to if I can't find a way to pull em out of a database and include() em. Any help would be much appreciated Cheers Simon -- THE WORST HOMING PIGEON This historic bird was released in Pembrokeshire in June 1953 and was expected to reach its base that evening. It was returned by post, dead, in a cardboard box eleven years later from Brazil. -- Stephen Pile, "The Book of Heroic Failures" -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]