Re: Accessing pdf file thru php
| From: | Richard Lynch | Date: | Thu, 13 Sep 2001 04:11:03 +0000 |
| Subject: | Re: Accessing pdf file thru php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-67129@lists.php.net to get a copy of this message | ||
> $header="
> Content-type: application/pdf
> Content-type: application/x-octet-stream
> Content-Disposition: inline; filename=D:\\Pdf\\0226138097(57-77).pdf
> Content-Length: $len";
You need a separate header() call for each header.
You *DEFINITELY* do *NOT* want a newline in front of the first header, since
a newline indicates the *END* of the headers.
Actually... I *GUESS* you could do one call to header() with newlines in
between, and the header function will tack on the last one for you... But
that's not how the function was designed to be called, nor how normal usage
works... It would work, but would be a Bad Idea (tm).
> header=($header);
Get rid of the = sign.
--
WARNING richard@zend.com address is an endangered species -- Use
ceo@l-i-e.com
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm