fclose($fileRes); $myParamBuilder = new ParamBuilder(); // create IDL PARAMCALCUL PROCEDURE // Process Local Params without codes if they exist if (file_exists(XML_BASE_DIR . "LocalParamsList.xml")) { $localParams = new DomDocument('1.0'); $localParams->load(XML_BASE_DIR . "LocalParamsList.xml"); $xp = new domxpath($localParams); foreach ($vars as $var) { $paramTag = $xp->query('//PARAM[.="' . $var . '"]'); if ($paramTag->length !== 0) { $myParamBuilder->paramLocalBuild($var); } } } $myParamBuilder->makeParamCalcul($chain, $vars, ""); // Run command $cmd = DDBIN . "DD_Search " . $user . " " . $IP . " " . DDPROJECT . " " . DDPROJLIB; if (Verbose) { fwrite(log, '$cmd = ' . $cmd . PHP_EOL); } $cmdResult = system($cmd); if ($cmdResult === false) { errorProcessing($ID, $cmdResult); if (Verbose) { fwrite(log, 'ERROR PROCESSING' . PHP_EOL); } } if (file_exists('../TT/helio.xml')) { rename('../TT/helio.xml', '../TT/helio' . sprintf("%02d", $i) . '.xml'); }