CodeIgniter Forums

Full Version: code igniter eval on library call
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]newtonianb[/eluser]
I'm trying to run an eval on this string eval('$this->ci->lib_funcs->rmdir_recurse("C\\temp\\20110525")')

but it doesn't seem to be working. In my design I iterate through a stack of commands that I'm supposed to run which essentially "rollsback".

I have defined $this->ci =&get;_instance();
The lib_funcs has been loaded from the controller

Is there a way to accomplish this? I tried the command without the eval and it works.

El Forum

[eluser]newtonianb[/eluser]
nevermind got it, I was missing the semicolon at the end inside my eval string