NOT dead anymore!
So, I figured out how to grab both stdout and std err by doing 2>&1, and that exposed the real problem.
There is an application that is called through the exec() call and it turns out that I cannot execute it through PHP.
The error message I get is "esql: cannot execute". However I can do this call successfully through my command line. PHP isn't running from safe mode, and I can't figure out why the hell i can't make this call through exec().
Any ideas?
The output is:
So, I figured out how to grab both stdout and std err by doing 2>&1, and that exposed the real problem.
There is an application that is called through the exec() call and it turns out that I cannot execute it through PHP.
The error message I get is "esql: cannot execute". However I can do this call successfully through my command line. PHP isn't running from safe mode, and I can't figure out why the hell i can't make this call through exec().
Any ideas?
HTML:
$command = "./esql get-udl.sql 2>&1";
print "<pre>The exec command: $command</pre> <br>";
exec($command, $output);
The output is:
HTML:
sh: ./esql: cannot execute