Hi. The catdoc.exe binary should create files with txt extensions. The tmp2 extensions are from the rename command.
From your post came the below two items:
- define('PHPDIG_PARSE_MSWORD','c://apache/htdocs/catdoc/catdoc');
- define('PHPDIG_PARSE_MSWORD','c://apache/htdocs/catdoc/catdoc/catdoc.exe');
The first item says that catdoc.exe is located in the c://apache/htdocs/catdoc/ directory whereas the second item says that catdoc.exe is the c://apache/htdocs/catdoc/catdoc/ directory. The path to catdoc.exe should be like this: c://apache/htdocs/catdoc/catdoc/catdoc (assuming the first two catdocs are directories and the last catdoc is for the catdoc.exe file).