[PHP] Sending a PDF page

2003-07-03 Thread Todd Cary
[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

Re: [PHP] Sending a PDF page

2003-07-03 Thread Brad Pauly
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

Re: [PHP] Sending a PDF page

2003-07-03 Thread Ray Hunter
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:

Re: [PHP] Sending a PDF page

2003-07-03 Thread Suhas Pharkute
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