Re: [PHP] displaying a pdf

2011-06-01 Thread Richard Quadling
On 1 June 2011 06:53, Tamara Temple tamouse.li...@gmail.com wrote: On May 30, 2011, at 10:01 AM, Jim Giner wrote: Thanks for the attempt Simon, but your code only displayed gibberish. While looking around again for help, I found this and it works perfectly: ?php session_start(); // //  

Re: [PHP] displaying a pdf

2011-06-01 Thread Jim Giner
Well - the code works just fine as is and that's all I care about. As for Richard's comments - the url in my header(Location) statement points to a pdf file, not a php file, so the target is not sending any headers (that I know of ). -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] displaying a pdf

2011-06-01 Thread Tamara Temple
On Jun 1, 2011, at 9:54 AM, Jim Giner wrote: Well - the code works just fine as is and that's all I care about. As for Richard's comments - the url in my header(Location) statement points to a pdf file, not a php file, so the target is not sending any headers (that I know of ).

Re: [PHP] displaying a pdf

2011-06-01 Thread Ashley Sheridan
On Wed, 2011-06-01 at 13:31 -0500, Tamara Temple wrote: On Jun 1, 2011, at 9:54 AM, Jim Giner wrote: Well - the code works just fine as is and that's all I care about. As for Richard's comments - the url in my header(Location) statement points to a pdf file, not a php file,

Re: [PHP] displaying a pdf

2011-05-31 Thread Tamara Temple
On May 30, 2011, at 10:01 AM, Jim Giner wrote: Thanks for the attempt Simon, but your code only displayed gibberish. While looking around again for help, I found this and it works perfectly: ?php session_start(); // // Specify the name of the pdf here and the folder //

Re: [PHP] displaying a pdf

2011-05-30 Thread Jim Giner
Thanks for the attempt Simon, but your code only displayed gibberish. While looking around again for help, I found this and it works perfectly: ?php session_start(); // // Specify the name of the pdf here and the folder // $pdfname='VFD_ByLaws.pdf'; $path='/pdfs/'; // // the rest will handle

[PHP] displaying a pdf

2011-05-29 Thread Jim Giner
Perhaps someone can tell me what I'm doing wrong. I did some ( a lot) looking around for hints on this and here is what I have compiled. It doesn't work - just goes to a white, blank page and sits. I don't know if I need all the html parts or even if I have placed my php in the right areas.

Re: [PHP] displaying a pdf

2011-05-29 Thread Simon J Welsh
On 30/05/2011, at 9:02 AM, Jim Giner wrote: Perhaps someone can tell me what I'm doing wrong. I did some ( a lot) looking around for hints on this and here is what I have compiled. It doesn't work - just goes to a white, blank page and sits. I don't know if I need all the html parts or

[PHP] Displaying a pdf inline

2004-09-14 Thread Todd Cary
After reading the online documentation, it appears that I should be using the following code, however it does not appear to work. Are there some obvious errors? if ($row) { $pdf_file = $row-CLM_IMG_FILE; $msg = $pdf_file; $SRC_FILE = /tmp/ . $pdf_file;

Re: [PHP] Displaying a pdf inline

2004-09-14 Thread Curt Zirzow
* Thus wrote Todd Cary: After reading the online documentation, it appears that I should be using the following code, however it does not appear to work. Are there some obvious errors? ... header(Content-Type: application/pdf); header(Content-Disposition: inline;

Re: [PHP] Displaying a pdf inline

2004-09-14 Thread Todd Cary
Curt - Thank you for the quick response. The file is being sent and the PDF reader does try to open it, but it is corrupted. When I change the Disposition to header(Content-Disposition: attachment; filename=image.pdf) and save the file, it cannot be opened do to errors within the file. Yet,

Re: [PHP] Displaying a pdf inline

2004-09-14 Thread Curt Zirzow
* Thus wrote Todd Cary: Curt - Thank you for the quick response. The file is being sent and the PDF reader does try to open it, but it is corrupted. When I change the Disposition to header(Content-Disposition: attachment; filename=image.pdf) and save the file, it cannot be opened