I have this piece of code to redirect the page to a pdf file. However, sometimes it shows all weird characters instead of the pdf file but sometimes it loads correctly. Why is that and how to fix? Thanks. :o
<html>
<head>
<META HTTP-EQUIV="Refresh" CONTENT="1; URL=<?php echo $pdf_file;?>">
</head>
<h1>Opening</h1>
<center>Please wait...</center></BODY></HTML>