2
Good afternoon friends,
I am creating folders dynamically according to the user’s password.
$dir = "relatorio/".$password;
if(!file_exists($dir)){
umask(0);
mkdir($dir, 0777,true);
}
$path = "relatorio/".$password."/".$nomeFormulario.".pdf";
$mpdf->Output($path, "F");
//$mpdf->Output();
header("location: sucesso.php");
exit();
This code runs every time the user opens the system, as soon as it opens the system and fills in a different questionnaire, is created inside the report folder, a folder with its password and then inside this folder is generated a PDF using the MPDF, but only the first pdf file gets permission 777, the rest does not stay.
Any hint ?
Gracias :)
Got the solution ? Currently I have a similar problem
– Vinicius Shiguemori