'); if ($b === FALSE) { $i = 0; continue; } $aux3 = substr($aux2,$b + 1); $xmlString = $aux1 . $aux3; } $xml = new SimpleXMLElement($xmlString, LIBXML_NOCDATA); $scPDF = new schedulerPDF(); $scPDF->printScheduler($xml); function PDFErrorHandler ($errno, $errstr, $errfile, $errline) { global $xmlString; if ($errno < 1024) { error_log($xmlString, 3, 'error_report_'.date("Y_m_d__H_i_s").'.xml'); exit(1); } } ?>