Forum


Replies: 8   Views: 4657
Corrupt file when calling createdocxanddownload
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by liam.whan  · 11-04-2013 - 12:13

hi there.

I'm on a XAMPP dev server at the moment. Apache 2.2, PHP 5.4.4


Its definately a header issue (im still new to headers so I'm not 100% ok with them) but I found a workaround:

if I edit CreateDocx.inc and call ob_clean() and flush() (passing no arguments) directly after header('Content-Transfer-Encoding: binary); I get the desired output.