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 server will send the appropriate headers for files like that. If you want to see it, try doing a wget or curl and make sure to snag the headers as well (or instead) of the actual file.

For instance:

  curl -O -D headers.txt 

returns headers.txt:

HTTP/1.1 200 OK
Date: Wed, 01 Jun 2011 18:28:28 GMT
Server: Apache/2.2.3 (CentOS)
Last-Modified: Mon, 03 Dec 2007 02:54:08 GMT
ETag: "9386f8-323dc0-e4df9400"
Accept-Ranges: bytes
Content-Length: 3292608
Content-Type: application/pdf

without doing anything special.

(no, i don't advocate going around picking locks. it's just useful info to have...)

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to