| [SOLVED] php's shell_exec not executing program? Hi, I'm designing a website in php that requires shell_exec(). I need shell_exec() to run a program on my server called "antiword", but I get no output when using shell_exec() but I do get output if I run the same command in my shell. (If I run shell_exec(ls) I get output.)
$cmd = "./antiword -a a4 a.doc > a.pdf";//If I run this manually it works fine
shell_exec($cmd);
I'm in the correct directory and a.doc is present. I get no error messages. |