Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript automatic pdf download Reply To: automatic pdf download

#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();