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.
Instead of the $root,
Can you use the relative path to the folder?
If you are running the file out of the \phpdocx\ folder, then just "./classes/CreateDocx.inc"
if you have it up a folder then prepend "../" for every folder up it is.
The code appear to prefer relative references over absolute.