Forum


Replies: 6   Views: 2856
Set temp_path from code
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 jhanley  · 28-10-2019 - 23:17

My web host temporary path is different for each environement (dev, stage, prod).

Leaving the temp_path setting empty in phpdocxconfig.ini causes a runtime error:

"Warning: ZipArchive::close(): Failure to create temporary file: Permission denied..."

I need the ability to set the temp_path value from code.

Does phpdocx have a method for setting environment values in code?