Failed to load pdf file when uploaded on server. Codeigniter hmvc
<p>i have this show uploaded pdf file on my localhost my view is</p>

<pre><code>&lt;?php
  // retrieve your info ecc.
  $url = $content-&gt;PATH;
  $filename = $content-&gt;FILE_NAME;
  header('Content-type: application/pdf');
  header('Content-Disposition: inline; filename="' . $filename. '"');
  header('Content-Transfer-Encoding: binary');
  header('Accept-Ranges: bytes');
  @readfile($url);
?&gt;
</code></pre>

<p>just to be clear</p>

<p><code>$content-&gt;PATH</code> and <code>$content-&gt;FILE_NAME</code> are data from database</p>

<p><code>$content-&gt;FILE_NAME</code> is  <code>$file_name = $file_data['file_name'];</code></p>

<p>and <code>$content-&gt;PATH = base_url().'uploads/pdf/'.$file_name;</code></p>

<p>now it perfectly works on my localhost, but on the server, it looks like this</p>

<p><a href="https://i.stack.imgur.com/6sfJs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6sfJs.png" alt="enter image description here"></a></p>

<p>the link to this is</p>

<pre><code> $row[] = '&lt;a href = "http://146.88.72.53/CaloocanCity/PDFuploads/pdffile/'.$info-&gt;ID_NUM.'/'.$info-&gt;DOC_NO.'/'.$info-&gt;FILE_NAME.'" class = "btn btn-sm btn-info pull-left fa  fa-question-circle" title="Show File"&gt;&amp;nbsp Show File&lt;/a&gt;";
</code></pre>

<p>what is the error of this ? how can i solve this?</p>