Forum


Replies: 3   Views: 3279
Error write access issue (iis 7 + windows server)
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 cbl  · 05-12-2016 - 16:04

Error :

$docx->createDocx($filenamewithaccent);

Error : Error while trying to write to X:\Path\File with accent - (éç).docx please check write access.

 

Solution :  

$docx->createDocx(iconv('UTF-8', 'ASCII//TRANSLIT//IGNORE', $filenamewithaccent));

 

 

Is there an other solution ?

Posted by cbl  · 22-12-2016 - 12:02

Hello,

DocxStructure.inc (Line 140) : is_readable() and is_writable return false

=> DocxStructure.inc (Line 141) : throw error !

 

The file is created even if is_readable() and is_writable return false ...

Posted by admin  · 22-12-2016 - 16:20

Hello,

Please try using PHP CLI mode, that's issue seems some wrong configuration from IIS. Also please check default rwx access, because if the DOCX is being created then both PHP functions should return a true value.

We also recommend you using FastCGI with IIS to avoid similar issues.

Regards.