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 Quote Link to comment Share on other sites More sharing options...
trq Posted March 22, 2007 Share Posted March 22, 2007 If you must. eval(). Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
trq Posted March 22, 2007 Share Posted March 22, 2007 No. Why? Quote Link to comment 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 Quote Link to comment 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.