11Tami Posted December 31, 2006 Share Posted December 31, 2006 Hello, can actual php functions be pulled from a database and work? I tried pulling out a small one inside other php that pulls items out of a database but pulling a php function out instead of just text didn't work. Can it be done? For instance how do people fill out new forms and such if a certain something is triggered and so on? Thank you very much. Link to comment https://forums.phpfreaks.com/topic/32353-question-to-others-who-know-about-databases-and-php/ Share on other sites More sharing options...
fert Posted December 31, 2006 Share Posted December 31, 2006 yes PHP code can be pulled from a database and run Link to comment https://forums.phpfreaks.com/topic/32353-question-to-others-who-know-about-databases-and-php/#findComment-150235 Share on other sites More sharing options...
trq Posted December 31, 2006 Share Posted December 31, 2006 Look at evil [url=http://php.net/eval]eval[/url], but be carefull with it. Link to comment https://forums.phpfreaks.com/topic/32353-question-to-others-who-know-about-databases-and-php/#findComment-150238 Share on other sites More sharing options...
11Tami Posted December 31, 2006 Author Share Posted December 31, 2006 So is there an easy way? Or is eval the only way. Thanks. Link to comment https://forums.phpfreaks.com/topic/32353-question-to-others-who-know-about-databases-and-php/#findComment-150243 Share on other sites More sharing options...
fert Posted December 31, 2006 Share Posted December 31, 2006 eval is the only way Link to comment https://forums.phpfreaks.com/topic/32353-question-to-others-who-know-about-databases-and-php/#findComment-150244 Share on other sites More sharing options...
corbin Posted December 31, 2006 Share Posted December 31, 2006 An easy way? Evals pretty straight forward lol Link to comment https://forums.phpfreaks.com/topic/32353-question-to-others-who-know-about-databases-and-php/#findComment-150258 Share on other sites More sharing options...
ShogunWarrior Posted December 31, 2006 Share Posted December 31, 2006 Eval is [url=http://blog.joshuaeichorn.com/archives/2005/08/01/using-eval-in-php/]evil[/url]. Link to comment https://forums.phpfreaks.com/topic/32353-question-to-others-who-know-about-databases-and-php/#findComment-150388 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.