Forum


Replies: 2   Views: 3842
Permissions
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 musseman1  · 06-09-2014 - 23:02

I saw some similar posts but haven't been able to resolve this on my ubuntu server: Error: Warning: copy(/home/webmaster/websites/jrmpllc/htdocs/wordstuff/LoanNarrativeTemplate.docx): failed to open stream: Permission denied in /home/webmaster/libraries/phplibs/thirdparty/phpdocx-pro-4.0/classes/CreateDocx.inc on line 633 Code: replaceVariableByText(array('Approval_Level' => 'Joe Musseman')); $docx->createDocx('/home/webmaster/websites/jrmpllc/htdocs/wordstuff/Loan_Narrative_Template23',$tempDir = '/home/webmaster/websites/jrmpllc/htdocs/wordstuff'); echo 'hi'; ?> Thanks for any help!!

Posted by musseman1  · 06-09-2014 - 23:02

CODE: error_reporting(E_ALL); ini_set('display_errors', 1); require_once("/home/webmaster/libraries/phplibs/thirdparty/phpdocx-pro-4.0/classes/CreateDocx.inc"); $docx = new CreateDocxFromTemplate('/home/webmaster/websites/jrmpllc/htdocs/wordstuff/LoanNarrativeTemplate.docx'); $docx->replaceVariableByText(array('Approval_Level' => 'Joe Musseman')); $docx->createDocx('/home/webmaster/websites/jrmpllc/htdocs/wordstuff/Loan_Narrative_Template23',$tempDir = '/home/webmaster/websites/jrmpllc/htdocs/wordstuff'); echo 'hi';

Posted by musseman1  · 07-09-2014 - 17:54

Problem Solved. Group ownership problem.