CodeIgniter Forums
eval() in DB problem - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: eval() in DB problem (/showthread.php?tid=55965)



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.