Are you tring to just assin the string "require ('common/login.php')" to the variable $str_box_body? If so then that should work. The only possible thing I could see wrong with your example above is a missing semi-colan at the end.
In that case you could just put in:
require ("common/login.php"
If that line of code is included conditionaly then I would use the include() command:
if (conditional statemen) include ("common/login.php"
I have never used the eval() command, but I could see where it would be handy if you had the same file included/required several times through out a application.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.