我正在http://usborrow.com上工作。该站点曾经能够将数据输出到 PDF,但是我现在收到以下错误:
Error: [2] /home/usborrow/public_html/gfe.php on line 218
fopen(docs/30b583784503f7dc61999d234c67e204.pdf) [function.fopen]: failed to open stream:
No such file or directory
第 218 行的脚本如下:
// Create the pdf
$pdfmaker = new pdftk_php();
$pdfmaker->make_pdf($fdf_data_strings, $fdf_data_names, $fields_hidden, $fields_readonly, $pdf_original, $pdf_filename);
// Create the attachment and params
$fileatt = '/'.$pdf_filename;
$fileatttype = "application/pdf";
$fileattname = $offer->hashval.'.pdf';
$file = fopen($fileatt, 'rb');
$data = fread($file, filesize($fileatt));
$data = chunk_split(base64_encode($data));
fclose($file);
$random_hash = md5(date('r', time()));
我已尝试更改 Docs 文件夹的权限,但它仍然无法正常工作。任何支持将不胜感激。