在php脚本中执行unoconv命令

I want to develop a functionality where users can upload their presentation files (*.ppt) and after uploading we will convert those ppt in the pdf.

I was trying it using unoconv,

unoconv -f pdf presentation.ppt

through the command it runs successfully and convert the uploaded (.ppt) file into (.pdf) file.

But when i am trying to do this through php script, it fails.

exec(unoconv -f pdf presentation.ppt);

please help, thanks for your answers in advance.

Thanks Atul

Try using exec("unoconv -f pdf presentation.ppt");