Behavior:
1. You create Word template with $variables$, run your phpdocx script, everything is great.
2. Now you want to change your variable names or something, so you edit and save your Word template
3. Now you run your phpdocx script again but the variables are not acting right!!
Cause: When you edit and save, Word saves barf in your file.
Fix:
1. From inside Word, save your Word template to odt format.
2. Close all files.
3. Reopen odt file, save as docx.
(You have to do it EVER time you edit your Word template.)
Word 2007
Windows XP
php 5.4.5
apache 2.4
phpdocx Pro 2.6