convert docx to html in command line not working

I tried to convert docx to html file using libreoffice4.4 in command line execution. I’m using below code this gives nothing. Please give me some suggestions to fix this.

$myCommand = "libreoffice4.4 --headless  -convert-to html /home/username/public_html/docx/test.docx -outdir /home/username/public_html/docx/";
exec ($myCommand);

Any update?
I am missing anything? Please correct me…

I too need the same Answer…! If anyone knows please help me on this.

So did you use the very same command line? Then it’s natural that you didn’t get the expected result, just like the OP: if you read the documentation, you’ll see that --outdir is part of --convert-to (and thus cannot be separated by filename from the latter), and that both should have two --, not one.

Also, if you’s read the guidelines to asking (mentioned from the How to use the Ask site link on the Ask main page), you’d not use “answer” to ask your question, knowing that answers are for answering questions.