neugi Posted March 22, 2007 Share Posted March 22, 2007 Hi, is there a way to parse php code from a mysql result. e.g. i've a text in the mysql db: "This is a sample text in file: ".$_SERVER[php_SELF]." < br >"; thanks Link to comment https://forums.phpfreaks.com/topic/43817-solved-parse-php-from-mysql/ Share on other sites More sharing options...
trq Posted March 22, 2007 Share Posted March 22, 2007 If you must. eval(). Link to comment https://forums.phpfreaks.com/topic/43817-solved-parse-php-from-mysql/#findComment-212704 Share on other sites More sharing options...
neugi Posted March 22, 2007 Author Share Posted March 22, 2007 hi, thx, so there is no other way? best Link to comment https://forums.phpfreaks.com/topic/43817-solved-parse-php-from-mysql/#findComment-212716 Share on other sites More sharing options...
trq Posted March 22, 2007 Share Posted March 22, 2007 No. Why? Link to comment https://forums.phpfreaks.com/topic/43817-solved-parse-php-from-mysql/#findComment-212717 Share on other sites More sharing options...
neugi Posted March 22, 2007 Author Share Posted March 22, 2007 right now there is only one variable that has to be shown, so i can do this with something like this str_replace. the problem would be only if somebody wants so show an unknown number of variables in the text from the db best Link to comment https://forums.phpfreaks.com/topic/43817-solved-parse-php-from-mysql/#findComment-212719 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.