Forum


Replies: 3   Views: 5806
Temporary file cleanup
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 msaunders  · 22-01-2013 - 11:17

I have done a little searching, but cannot see if there is a facility to clean up the generated temporary fiiles, once the docx file is generated a cleanup would be beneficial.

Is there such an option?

Marc

Posted by admin  · 11-04-2013 - 12:13

Hello,

In the last version of phpdocx temp files are removed. Do you get any temp file that still persist?.

Regards.

Posted by msaunders  · 11-04-2013 - 12:13

Yes i do, i have change CreateDocx.inc on line 6924 static function getTempDir() to be commented out, and replaces with

return TEMP_FILES_PATH;

This defines the temp location exactally, the files are being created with no issues now, except there is no cleanup.

I have downloaded the latest version 3.0 and am using that.

Marc