I create a pdf content on fly and then print it out with coding as following. It's used to work fine on an apache server. Now I change to another apache server on different machine, it won't work now. I wonder maybe the apache version is different, this one is lattest version. Can't figure out the problem. Please advise, thank you very much!
header('Content-Type: application/pdf');
header('Content-Disposition: inline');
print($rpt_content);
Jack