mkdir php TCPDF ERROR

1

I have an application that generates a pdf file and saves it to a specific directory. I followed the php ( link ) manual for using this function.

I have already given permission as sudo (runs on an ubuntu server with nginx) but I still get the same error return.TCPDF ERROR: Unable to create output file This error is generated because after creating and saving, the file should be downloaded, but as the file is not being generated I have this return error.

Line:

$html2pdf->Output('./modelos/docs/'.'.pdf', 'F');
$modelObj->add_file($dados['id'], './modelos/docs/'.'.pdf', "Regulamento");
$html2pdf->Output('regulamento_'.$dados['id'].'.pdf', 'D');
    
asked by anonymous 16.04.2016 / 17:10

0 answers