Home › Forums › JavaScript › automatic pdf download › Reply To: automatic pdf download
January 18, 2017 at 2:44 pm
#250196
Shikkediel
Participant
I’m not great at PHP myself… so I thought leaving out a few lines that didn’t seem very relevant wouldn’t make much of a difference. But this is the exact code I’m using (mostly a copy and paste from quite a while back):
...
ob_clean();
flush();
readfile('path/correctname.pdf');
exit();