Welcome Guest, Not a member yet? Register   Sign In
Running External Scripts from CodeIgniter
#11

[eluser]cdicelico[/eluser]
I ended up using system() in order to get a return value so I could better determine what was going on. At first, I was getting a return value of 127 and after doing some research and fixing paths in my code, I finally got a return value of 0 (successful execution). It turns out that, at least in my environment, whatever script you call from a controller gets executed from the web document root where all the CI directories are located. That was what was throwing me off.

However, even though the script gets executed successfully now, it still doesn't do what it's supposed to. I don't think this has anything to do with CI, though.

Does anyone know of any caveats to executing an external script from PHP within a chrooted environment?

Thanks, jaquer, your replies were very helpful in figuring all this out.




Theme © iAndrew 2016 - Forum software by © MyBB