Welcome to WebmasterWorld Guest from 220.127.116.11
Assuming the pdf is using a .pdf extension then the mime type should be picked up from that. However if you are serving this as xml then the mime type will not be application/pdf.
You could always try forcing a download.
There are a load of scripts on this forum and the web that will help with force download.
Do you need to have the pdf embedded in xml? Or could you serve it directly?
header ( 'Content-Length: ' . filesize ( $path ) );
header("Content-disposition: attachment; filename=$file");
This was the original code that was working in whole until the config change, since then I've tried subbing /pdf in the content-type: statement but no change in the end result. I echoed out $path and its the correct place where the pdf file is created after pulling the data out of the xml file. Any idea on what would keep this code from working after that config change?