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();
//
//
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/)
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 ).
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,
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
//
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
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.
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
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;
* 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;
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,
* 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
12 matches
Mail list logo