Generating docx using PHPword gives Import Error on Mac

Hi All,

I am using PHPword library and creating a doc file from a website. It is running perfectly on Windows and Linux machines but am getting “Import Error” on Mac machine when I try to open it using iWork. When I email that file and try opening on a Mac machine, it does not work.
I even tried generating the doc file from the Mac machine directly using the same process (PHPword library), I get the same “Import Errror” on Mac.

Can somebody help me out on this? Its a very crucial issue that I am facing.