I'm using the below script to display the PDF in browser.
$vPath = '/path/to/pdf/example.pdf';
header('Content-type: application/pdf');
header('Content-Disposition: inline; filename="' . $vPath . '"');
header('Content-Transfer-Encoding: binary');
header('Content-Length: ' . filesize($vPath));
header('Accept-Ranges: bytes');
@readfile($vPath);
The PDF files are on the same server where the script is. But now I have to move the PDF to image server(Only PDF and Image files resides here)
How can I display the PDF from another server? Please help