CodeIgniter Forums
eval() in DB problem - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: eval() in DB problem (/thread-55965.html)



eval() in DB problem - El Forum - 11-19-2012

[eluser]Unknown[/eluser]
Welcome.
Soory for my English;/

I have problem whit eval function:
Message: eval() has been disabled for security reasons
Filename: database/DB.php

Line Number: 118

Is somebody know how fix it?
Maby: create_function ??







eval() in DB problem - El Forum - 11-19-2012

[eluser]Narf[/eluser]
Just remove the eval() around the code.


eval() in DB problem - El Forum - 11-19-2012

[eluser]Unknown[/eluser]
THXSmile
So simple and workSmile
But i don't understand why eval function is place here;/


eval() in DB problem - El Forum - 11-19-2012

[eluser]Narf[/eluser]
My guess is that it was required to do it this way in PHP4 back when it was supported.