pdfnoviceLe 11/01/2010 à 21:51
I don't think it has to do with version. I think that there may be a timeout in processing the code. I am processing and totaling, and joining approx 40,000 rows. It takes 7 seconds to process the first and second query total.
What I believe is happening is that the pdf process function may be cutting off the full parse of the PHP at the point where it fails, saying there there is not TR close because in uploading of the table possibly did not load into the variable.
Here is the main processing page via php:
include(dirname(__FILE__).'/report/opact_report.php');
$content = ob_get_clean();
// conversion HTML => PDF
require_once(dirname(__FILE__).'/../html2pdf.class.php');
$html2pdf = new HTML2PDF('P','A4','en');
$html2pdf->setDefaultFont('Arial');
$html2pdf->WriteHTML($content, isset($_GET['vuehtml']));
$content_PDF = $html2pdf->Output('', true);
//Email Report
$filename = "OpAction";
$filename = $filename . '_' . date("m-d-y_Hi", time()) . '.pdf';
require_once(dirname(__FILE__).'/pjmail/pjmail.class.php');
$mail = new PJmail();
$mail->setAllFrom('fromemail@domain.local', "Shift Reports");
$mail->addrecipient('email@domain.local');
$mail->addsubject("Operator Action Report For: ". date("m-d-y_Hi", time()));
$mail->text = "This is the shift report for:" . date("m-d-y_Hi", time()) . ". If you have any questions please contact your system Administrator.";
$mail->addbinattachement($filename, $content_PDF);
$res = $mail->sendmail();
Does anyone see any problem here?