Forum


Replies: 4   Views: 3276
Internal server error
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 admin  · 18-01-2018 - 12:23

Hello,

The relative path is correct if you run the sample in the same folder than the script. Please check that all files have been copied and you are running the script in the same folder that the script exists; as it uses a relative path, you can't run:

C:\...>php.exe examples/Core/addText/sample_1.php

You need to access the examples folder and then run the script:

C:\...> cd examples/Core/addText

C:\...> php sample_1.php

You can also try to set an absolute path to CreateDocx.inc, and also please check you can include CreateDocx.inc correctly.

The error you are getting only appears if PHP can't read the file.

Regards.