Help, im having issue opening pdf's in IE, im basicly outputting a pdf to a browser by reading the file in then printing it out. The headers set are
header('Content-Type: application/pdf');
header('Content-Length: '.$file_size);
header('Content-Disposition: inline; filename="document.pdf"');
now this works fine on the local server in both IE and Firefox, however when i try and put it on the live server IE just asks wether i want to open or save "Adobe Acrobat Control for ActiveX". It works fine in firefox.
the headers sent on the live server show as
HTTP/1.0 200 OK
Date: Fri, 22 Dec 2006 12:11:25 GMT
Server: Apache/1.3.33 (Unix)
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Content-Disposition: inline; filename="document.pdf"
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Pragma: no-cache
X-Powered-By: PHP/4.4.4
Content-Length: 229287
Connection: close
Content-Type: application/pdf
has anyone come accross the same problem and possibly a soloution?