Mit folgendem Code könnt ihr ein pdf im ie, mozilla....
direkt mit dem plugin öffnen. Falls keines installiert ist wird ein Download ausgelöst. Falls ihr nur downloaden wollt, ersetzt inline durch attachment:
die $ Variablen ergeben sich aus dem Kontext, sonst mailt:
anstetts@studi.informatik.uni-stuttgart.de header('Pragma: public');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: pre-check=0, post-check=0, max-check=0');
header('Content-Transfer-Encoding: none');
header("Content-Disposition: inline; filename=$content");
header('Content-Type: application/pdf ');
readfile($filename);