cooldude832 Posted December 24, 2007 Share Posted December 24, 2007 I'm thinking it be a great idea to integrate my CMS with mysql so that I can do full text search. Right now my system is very simple it is basically this <?php //Prototypes/includes include("shell_top.php"); include($page.".php"); include("shell_bottom.php"); ?> I want to make the middle include (include($page.".php") to be drawn from mysql, I know how to do this, but I want to be able to include php blocks in there any ideas? My one idea I had was to some how phrase that blob of data and then when it finds a block of php it takes that blob out and executes it, but my question is how? Quote Link to comment https://forums.phpfreaks.com/topic/83010-executing-php-form-a-mysql-blob-section/ Share on other sites More sharing options...
PHP_PhREEEk Posted December 24, 2007 Share Posted December 24, 2007 Use eval() on the PHP blocks to have it executed as code. That should work if I understand you correctly.. = ) PhREEEk Quote Link to comment https://forums.phpfreaks.com/topic/83010-executing-php-form-a-mysql-blob-section/#findComment-422287 Share on other sites More sharing options...
cooldude832 Posted December 24, 2007 Author Share Posted December 24, 2007 yeah that is a great idea, didn't think of that, and raw output should be ignored right? I might need to do a bit of escaping, and probably use openers in it, explode at the openers and then use eval on those sections Quote Link to comment https://forums.phpfreaks.com/topic/83010-executing-php-form-a-mysql-blob-section/#findComment-422472 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.