[Sent this the first time to the wrong list]
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
Todd Cary wrote:
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
Try using the a shutdown function:
http://us2.php.net/manual/en/function.register-shutdown-function.php
and put all your logic that needs to run after the exit function.
--
BigDog
On Thu, 2003-07-03 at 13:18, Todd Cary wrote:
[Sent this the first time to the wrong list]
In this code:
Subject: [PHP] Sending a PDF page
[Sent this the first time to the wrong list]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
4 matches
Mail list logo