ID: 23054 Updated by: [EMAIL PROTECTED] Reported By: cindylu at jdbarnes dot com -Status: Open +Status: Bogus Bug Type: PDF related Operating System: Linux PHP Version: 4.3.0 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. This is definately not any bug in PHP. Previous Comments: ------------------------------------------------------------------------ [2003-04-04 09:58:50] cindylu at jdbarnes dot com If I create a test.php file with the following code, I put that test.php on the website. the code will show the pdf on the screen. It works ok. <?php header("Content-Type: application/pdf"); @readfile($pdfFile); ?> But if I put these few lines of code in my php, it does not show the pdf file on the screen. <?php $pdffile = myCreatePDF_function($myHTML); //I know my pdf file is created, because if I stop here, I can see my pdf file and I can use my test.php to show my pdf file on screen. //But if I put the code in here. It does not work. header("Content-Type: application/pdf"); @readfile($pdfFile); exit(); ?> Can anyone tell me why? Any comments are highly appreciated. Cindy ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23054&edit=1