Forum


Replies: 4   Views: 7104
Library can't write to temp folder
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 pweber505  · 16-01-2014 - 17:01

Hello,



I have been stuck on this for a while and have tried to find help on line but to no avail. I have installed the Trial version of PHPDocX and run check.php, and get all green (with yellow on Tidy support) but get the red fail on "The library can't write to temp folder. You can set a custom tmp path in config/phpdocx_config.ini file".



I have set all the permissions to 777 and even talked with the host (GoDaddy) to confirm this. Check.php is running in a subdirectory /PHPDocX and I have a folder off of that (/tmp) that I want as the temp folder. I have edited the phpdocxconfig.ini file as directed and set the temp path to "tmp/" and the check.php fails. I also tried an absolute server path and it failed. I know that I can write to the folder - I made a test.txt file and wrote a script to write to the file and it works.



Does anyone have any ideas how I can set this to write to the temp file? Safe mode is set "off" in phpinfo.php as well. Thanks.



 



 


Posted by jorgelj  · 17-01-2014 - 07:58

Hello,



Did you try to run an example like easy/Text.php? Check if the DOCX is generated in examples/docx path.



Regards.


Posted by pweber505  · 17-01-2014 - 19:22

The Text.php file generated the word doc as expected. Does this mean that everything is working, even though check.php shows a "fail" for the writeable directory?



Thanks.


Posted by jorgelj  · 17-01-2014 - 20:49

Hello,



That's what it seems. You should try other examples like Template.php and other with a chart to confirm it.



Regards.