i have test.pdf in the same folder as my php script and i'd like to open pdf in the browser, inside acrobat reader. Here's my code:
header("Content-type: application/pdf");
header("Content-Disposition: inline; filename=test.pdf");
readfile('test.pdf');
//this outputs directly into the browser but does not open acrobat reader (it is installed properly on my computer). if i change inline to attachment, it downloads pdf properly.
what am i mising?
Thanks,
Steve