当我运行mpdf php库中的示例时,我收到以下错误。我甚至尝试给ttfontdata和其他文件夹写入权限,但仍然无法正常工作。我发现ttfontdata文件夹为空。 如果我们为文件夹提供写入权限,它是否适用于之后生成的所有文件?提前致谢。
Warning: file_put_contents(/var/www/html/mpdf/ttfontdata/freeserif.GSUBGPOStables.dat): failed to open stream: Permission denied in /var/www/html/mpdf/classes/ttfontsuni.php on line 1145
Warning: file_put_contents(/var/www/html/mpdf/ttfontdata/freeserif.GDEFdata.php): failed to open stream: Permission denied in /var/www/html/mpdf/classes/ttfontsuni.php on line 1163
Warning: file_put_contents(/var/www/html/mpdf/ttfontdata/freeserif.GSUBdata.php): failed to open stream: Permission denied in /var/www/html/mpdf/classes/ttfontsuni.php on line 1395
Warning: file_put_contents(/var/www/html/mpdf/ttfontdata/freeserif.GSUB.arab.DFLT.php): failed to open stream: Permission denied in /var/www/html/mpdf/classes/ttfontsuni.php on line 2195