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

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 ). The

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/) To

Re: [PHP] displaying a pdf

2011-06-01 Thread Richard Quadling
On 1 June 2011 06:53, Tamara Temple 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: >> >> > session_start(); >> // >> //  Specify the na

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: I may not be fully understanding this, but if you set a Location: header, the other headers you

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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

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 b

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: > 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