我正在使用php和fpdf创建一个pdf文件 它也是保存的服务器 我想用HTML显示它 错误来自嵌入源
我的php代码如下
<?php
..... some processing
$m_pfile='payslips-'.$m_mthyear.'-'.$m_pname.'.pdf';
$pdf->Output($m_pfile);
?>
$m_pfile comes as 'payslips-Dec-17-abc.pdf'
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head></head>
<body>
<div id="content">
<div align="center">
<a href='../payslips.php'><img src = '../images/close-icon.png' height='50' width='50' alt = 'close' title = 'close'/></a>
<div align="center">
<embed src='$m_pfile' width=810px height=1180px>
</div>
</div>
</div>
</body>
</html>