Forum


Replies: 4   Views: 3517
Temporary files are not deleted
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 hestera  · 17-09-2011 - 08:46

Hi,

we saw a few temporary files remaining in the system temp dir and we analyzed it a bit. It seems that the temp files generated in createDocx() method are not being deleted. Could that be changend in the next version?

Regards,
Andy

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

Hello,

Phpdocx uses system temp directoy, so the SO should delete these files on its own. Also if you restart the machine they'll be delete or when you run a cron task.

For now phpdocx won't deleted these files on the released version, but you can add an unlink function in CreateDocx class. If you need a path please reply this email.

Regards. Jorge.

Posted by reena  · 14-02-2014 - 22:45

Hello Jorge,



When generating worddocument, a temporary file crated is deleted succesully, but it also creates two other directories with subfolders required by word document and these two directories are not deleted. Is there a solution for this?



Regards



Prabhakar


Posted by jorgelj  · 17-02-2014 - 11:41

Hello,



Please contact us through this form (http://www.phpdocx.com/contact).



Regards.