我正在为下面的代码获取 http500,我不确定出了什么问题。我是 php 新手。我检查了 PDF.php 是否在正确的目录中,字体也是如此
<?php
define('FPDF_FONTPATH','/home/php/File/PDF/fonts/');
require('/home/php/File/PDF.php');
$pdf=new FPDF('P', 'mm', array(100,150));
$pdf->AddPage();
$pdf->SetFont('times');
$pdf->Cell(40,10,'Hello World!');
$pdf->Output("ruchit.pdf", D);
?>