I put the filenames in a php array. But why does it not work.... The '' and the , looks right when i print the array... If i type the filenames in the mergedocx function it works....
////////////////////////////////////////////////////////////
require_once '../../classes/DocxUtilities.inc';
foreach($Array_TGW_Items_GET as $value) {
$Array_Items .= "'../tgw/$value.docx',";
}
$Array_Items = substr($Array_Items,0,-1);
$newDocx = new DocxUtilities();
$options = array('mergeType' => 0);
$newDocx->mergeDocx($Array_Items,'../tgw/mergedDocx.docx', $options);
///////////////////////////////
output $Array_Items = '../tgw/1209.docx','../tgw/1207.docx','../tgw/1098.docx','../tgw/1103.docx'
Error message
[Tue Dec 18 16:57:31 2012] [error] [client 172.16.2.1] PHP Catchable fatal error: Argument 1 passed to DOMDocument::importNode() must be an instance of DOMNode, null given, called in /phpdocx_pro/classes/DocxUtilities.inc on line 708 and defined in /phpdocx_pro/classes/DocxUtilities.inc on line 2363