In this code:
if ($prtpdf) { include "letter_new.php"; exit; }
I create a PDF page, however I would like to continue within the script (not have the exit). If I do that, the PDF page is corrupted by the script code.
What is the best solution for this?
I am assuming that "letter_new.php" outputs the contents of the PDF you are generating. You could use output buffering to grab the PDF and then go on with your script:
if ($prtpdf) {
ob_start();
include "letter_new.php";
$pdf_buffer = ob_get_contents();
ob_end_clean();
}http://us2.php.net/manual/en/ref.outcontrol.php
Brad
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

