View Single Post
  #1 (permalink)  
Old 06-10-2007, 05:24 PM
tarik.umar
Posts: n/a
[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.

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!